CVE-2026-42214

Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext

Published May 7, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Dail8859 notepad Next
CPEs cpe:2.3:a:dail8859:notepad_next:*:*:*:*:*:*:*:*
Vendors & Products Dail8859 notepad Next
Type Values Removed Values Added
First Time appeared Dail8859
Dail8859 notepadnext
Vendors & Products Dail8859
Dail8859 notepadnext
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 9, 2026, 3:55 AM
Reserved
Apr 25, 2026, 5:04 AM
Status
Analyzed
Published
May 7, 2026, 7:16 PM
Modified
Oct 26, 2026, 8:10 PM