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.
Affected products
dail8859: notepad next
References4
- github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c… ExploitMitigationVendor Advisory
- github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c… ExploitMitigationVendor Advisory
- github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5e… Patch
- github.com/dail8859/NotepadNext/releases/tag/v0.14 Release Notes
Metrics
- CVSS 3.1
-
7.8
HIGH
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 16 · as of 13 November 2026
- CWE
- CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.