Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 84%

CVE-2026-42214: CWE-94: Improper Control of Generation of Code ('Code Injection') in dail8859 NotepadNext

0
High
VulnerabilityCVE-2026-42214cvecve-2026-42214cwe-94
Published: 05/07/2026 (05/07/2026, 18:14:20 UTC)
Source: CVE Database V5
Vendor/Project: dail8859
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
dail8859/NotepadNext
pkg:github/dail8859/NotepadNext
Affected versions
<0.14

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/15/2026, 10:49:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses