CVE-2026-131959 emacs: .dir-locals.el auto-mode-alist bypass gives code execution on file open
PublishedGNU 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 va...