CVE-2026-42214
Last modified
CVE-2026-42214 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. Notepad Next is a cross-platform, reimplementation of Notepad++. Prior to version 0.14, NotepadNext's detectLanguageFromExtension() function interpolates a file's extension directly into a Lua script without sanitization. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
Notepad Next is a cross-platform, reimplementation of Notepad++. Prior to version 0.14, NotepadNext's detectLanguageFromExtension() function interpolates a file's extension directly into a Lua script without sanitization. An attacker can craft a filename whose extension contains Lua code, which executes automatically when the victim opens the file in NotepadNext. Because luaL_openlibs() is called unconditionally, the full os, io, and package libraries are available to the injected code, enabling arbitrary command execution. This issue has been patched in version 0.14.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Dail8859 | Notepad Next | < 0.14 |
References
- https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54gExploit, Mitigation, Vendor Advisory
- https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54gExploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-42214?
How severe is CVE-2026-42214?
How do I fix CVE-2026-42214?
Are you affected by CVE-2026-42214?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
