CVE-2026-131959
Last modified
CVE-2026-131959 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.)
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| GNU | Emacs | 31.1 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-131959?
How severe is CVE-2026-131959?
How do I fix CVE-2026-131959?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-13190In Progress® Telerik® UI for AJAX prior to v2026.2.708, a de…8.1
- CVE-2026-13191The Create plugin for WordPress is vulnerable to generic SQL…6.5
- CVE-2026-131914Deserialization of untrusted data in double-submit cookie vs…9.3
- CVE-2026-13192In Progress® Telerik® UI for AJAX prior to v2026.2.708, insu…6.5
- CVE-2026-131920In OpenStack Cinder before 29.1.1, by making an os-initializ…6.9
- CVE-2026-131922In OpenStack keystonemiddleware before 13.0.3, by supplying …4.3
- CVE-2026-13196Nozomi Networks Labs identified a CWE-787: Out-of-bounds Wri…7.3
- CVE-2026-13197Nozomi Networks Labs identified a CWE-362: Concurrent Execut…7.3
- CVE-2026-131971The Payment forms, Buy now buttons, and Invoicing System | G…
- CVE-2026-131975The Shortcodes Ultimate WordPress plugin before 7.9.1 does …
- CVE-2026-131976The Shortcodes Ultimate WordPress plugin before 7.9.1 does …
- CVE-2026-131977The Shortcodes Ultimate WordPress plugin before 7.9.1 does …
Are you affected by CVE-2026-131959?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
