{
  "id": "CVE-2026-131959",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-131959",
  "published_at": "2026-11-18T07:34:30.502Z",
  "vendor": "GNU",
  "product": "Emacs",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables. A crafted .dir-locals.el can supply a (REGEXP FUNCTION t) entry in auto-mode-alist; when a matching file is opened, Emacs calls FUNCTION before set-auto-mode--dir-local-valid-p validates it, executing arbitrary Emacs Lisp with the privileges of the Emacs process. (Emacs 30.2 is unaffected.)",
  "cwe": "CWE-829",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "GNU",
        "product": "Emacs",
        "ranges": [
          "31.1"
        ],
        "fixed_in": null
      }
    ],
    "solutions": [
      "Apply the fix from commit 205ae0b0583dbfe09e258164adbc49e130645221\n(emacs-31 branch), or upgrade to Emacs 31.2 or later when released."
    ],
    "workarounds": [
      "Do not open files in untrusted directories that contain a .dir-locals.el. Setting enable-dir-local-variables to nil disables directory-local variables."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
