CVE-2026-42214 Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext
HighCVSS 7.8
EPSS 0.24%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dail8859 notepad next | < 0.14 | 0.14 | Fixed |
| dail8859 NotepadNext | = < 0.14 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dail8859 NotepadNext | = < 0.14 | No fix listed |
| dail8859 notepad next | < 0.14 | 0.14 |
References
- https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g exploit mitigation vendor-advisory
- https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc patch
- https://github.com/dail8859/NotepadNext/releases/tag/v0.14 release-notes