CVE-2026-42214: CWE-94: Improper Control of Generation of Code ('Code Injection') in dail8859 NotepadNext
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.
AI Analysis
Technical Summary
NotepadNext before version 0.14 contains a code injection vulnerability (CWE-94) in the detectLanguageFromExtension() function. This function embeds the file extension directly into a Lua script without sanitization, enabling an attacker to craft a filename with a malicious extension containing Lua code. When the file is opened, the injected Lua code executes with access to the full Lua standard libraries, including os, io, and package, allowing arbitrary command execution. The issue is resolved in version 0.14.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the victim's system with the privileges of the user running NotepadNext. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade NotepadNext to version 0.14 or later, where this vulnerability has been patched. No other vendor advisories or temporary mitigations are provided. Patch status is confirmed by the vendor's versioning.
CVE-2026-42214: CWE-94: Improper Control of Generation of Code ('Code Injection') in dail8859 NotepadNext
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NotepadNext before version 0.14 contains a code injection vulnerability (CWE-94) in the detectLanguageFromExtension() function. This function embeds the file extension directly into a Lua script without sanitization, enabling an attacker to craft a filename with a malicious extension containing Lua code. When the file is opened, the injected Lua code executes with access to the full Lua standard libraries, including os, io, and package, allowing arbitrary command execution. The issue is resolved in version 0.14.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the victim's system with the privileges of the user running NotepadNext. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade NotepadNext to version 0.14 or later, where this vulnerability has been patched. No other vendor advisories or temporary mitigations are provided. Patch status is confirmed by the vendor's versioning.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-25T05:04:37.028Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fcdf2dcbff5d86101f12ec
Added to database: 5/7/2026, 6:51:25 PM
Last enriched: 5/7/2026, 7:06:58 PM
Last updated: 5/8/2026, 1:19:42 PM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.