The Canadian Centre for Cyber Security issued an Emacs security alert on November 18, 2026, drawing attention to a flaw involving directory-local settings. The alert is new; the underlying vulnerability was publicly disclosed earlier this month.
Opening a file can cross a trust boundary
In the maintainer disclosure dated November 11, Sean Whitton identified Emacs 31.1 as affected and explicitly said Emacs 30.2 was unaffected. The disclosure includes Stefan Monnier’s patch and says it is intended for the upcoming 31.2 release. This report does not treat that planned release as already available.
The FreeBSD security entry, dated November 16, explains the impact: opening a file within a directory tree containing malicious .dir-locals.el settings can execute Lisp code with the user’s permissions. Certain mode-selection entries were not receiving the required validation.
Available fixes depend on the distribution
FreeBSD identifies affected stable packages below 31.1_4,3 and development packages below 32.0.50.20261115,3. Those are FreeBSD package revisions, not upstream Emacs release numbers. Other users should check their distributor’s patched build or the maintainer-provided patch while monitoring the 31.2 release status.
IPCRIME analysis: review the whole project directory
The practical concern is a developer opening unfamiliar project material inside an editor that can evaluate project-specific settings. Reviewing only the visible document may miss configuration files elsewhere in the same directory tree.
Until a verified fix is installed, use an isolated environment for unfamiliar projects and keep sensitive credentials out of that environment. Ask the package maintainer whether the fix has been backported: a patched package can retain an older upstream version number. Record the package revision and security notice used to establish remediation, rather than assuming a version label alone answers the question.
Related reading: Firefox 160.0.1 Fixes Two High-Severity Flaws Alongside Stability Problems.
Featured image: conceptual IPCRIME artwork, not a photograph or screenshot of this incident or product.
