{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-131959 in the wild and no public exploit code.","exposure":"","fix":"No fix has been published for CVE-2026-131959 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-131959 is a high-severity vulnerability in GNU Emacs, published on 18 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-131959 and fix it if it is affected.\n\nWhat it is: CVE-2026-131959 is a high-severity vulnerability in GNU Emacs, published on 18 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-131959 in the wild and no public exploit code.\n\nAffected product: GNU Emacs. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-131959/ (Markdown: https://insights.sbomify.com/CVE-2026-131959/index.md)","id":"CVE-2026-131959","markdown":"https://insights.sbomify.com/CVE-2026-131959/index.md","name":"CVE-2026-131959","record":{"aliases":["GHSA-5hqm-5j9g-jhcr","UBUNTU-CVE-2026-131959"],"analysis":null,"analysis_generated_by":null,"assigner":"mitre","component":null,"cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"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.)","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables.","id":"CVE-2026-131959","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":4,"n_vendor_status":0,"next":{"headline":"Rapid7 Metasploit Framework Local Privilege Escalation via Insecure msfdb PostgreSQL Configuration","id":"CVE-2026-132038"},"nickname":null,"packages":[],"prev":{"headline":"In OpenStack keystonemiddleware before 13.0.3, by supplying a malicious regular expression when creating an application credential (aka AppC","id":"CVE-2026-131922"},"products":["Emacs"],"published":"2026-11-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-18","vendor_status":[],"vendors":["GNU"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-131959/"}