Skip to content

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.

PackageAffectedFixed inStatus
dail8859 notepad next < 0.14 0.14 Fixed
dail8859 NotepadNext = < 0.14 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
dail8859 NotepadNext = < 0.14 No fix listed
dail8859 notepad next < 0.14 0.14

References