CVE-2026-42214: CWE-94: Improper Control of Generation of Code ('Code Injection') in dail8859 NotepadNext
CVE-2026-42214 is a code injection vulnerability in NotepadNext versions prior to 0.14. The detectLanguageFromExtension() function unsafely interpolates a file extension into a Lua script without sanitization, allowing an attacker to execute arbitrary Lua code by crafting a malicious file extension. Because the full Lua standard libraries are loaded, this can lead to arbitrary command execution. This vulnerability has been patched in NotepadNext version 0.14.
AI Analysis
Technical Summary
NotepadNext, a cross-platform reimplementation of Notepad++, contained a code injection vulnerability (CWE-94) in its detectLanguageFromExtension() function before version 0.14. The function directly inserts the file extension into a Lua script without sanitization, enabling an attacker to embed Lua code in the file extension. When the file is opened, the injected Lua code executes with access to the full Lua standard libraries (os, io, package), allowing arbitrary command execution. This issue is fixed 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 system compromise, including confidentiality, integrity, and availability impacts. The CVSS 3.1 base score is 7.8 (High), reflecting local attack vector with low complexity, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade NotepadNext to version 0.14 or later, where this vulnerability has been patched. No other mitigations are specified or required once the update is applied.
CVE-2026-42214: CWE-94: Improper Control of Generation of Code ('Code Injection') in dail8859 NotepadNext
Description
CVE-2026-42214 is a code injection vulnerability in NotepadNext versions prior to 0.14. The detectLanguageFromExtension() function unsafely interpolates a file extension into a Lua script without sanitization, allowing an attacker to execute arbitrary Lua code by crafting a malicious file extension. Because the full Lua standard libraries are loaded, this can lead to arbitrary command execution. This vulnerability has been patched in NotepadNext version 0.14.
CVSS v3.1
Score 7.8high
Affected software
pkg:github/dail8859/NotepadNextRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NotepadNext, a cross-platform reimplementation of Notepad++, contained a code injection vulnerability (CWE-94) in its detectLanguageFromExtension() function before version 0.14. The function directly inserts the file extension into a Lua script without sanitization, enabling an attacker to embed Lua code in the file extension. When the file is opened, the injected Lua code executes with access to the full Lua standard libraries (os, io, package), allowing arbitrary command execution. This issue is fixed 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 system compromise, including confidentiality, integrity, and availability impacts. The CVSS 3.1 base score is 7.8 (High), reflecting local attack vector with low complexity, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade NotepadNext to version 0.14 or later, where this vulnerability has been patched. No other mitigations are specified or required once the update is applied.
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: 05/07/2026, 18:51:25 UTC
Last enriched: 05/15/2026, 10:49:36 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 98
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.