{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "205ae0b0583dbfe09e258164adbc49e130645221"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "205ae0b0583dbfe09e258164adbc49e130645221"
            }
          ],
          "repo": "https://cgit.git.savannah.gnu.org/cgit/emacs.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "cwe_ids": [
      "CWE-829"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131959.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "last_affected": "31.1"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "ZeroIntroducedSingleVersion"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "31.1"
              },
              {
                "last_affected": "31.1"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      }
    ]
  },
  "details": "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.)",
  "id": "CVE-2026-131959",
  "modified": "2026-11-18T16:45:57.863531779Z",
  "published": "2026-11-18T07:34:30.502Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221"
    },
    {
      "type": "WEB",
      "url": "https://debbugs.gnu.org/82213"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.savannah.gnu.org/cgit/emacs.git"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131959.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-131959"
    },
    {
      "type": "WEB",
      "url": "https://www.openwall.com/lists/oss-security/2026/11/11/7"
    },
    {
      "type": "ADVISORY",
      "url": "https://x3r0day.github.io"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}