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…

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: Thu May 07 2026 (05/07/2026, 18:14:20 UTC)
Source: CVE Database V5
Vendor/Project: dail8859
Product: 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

AILast updated: 05/07/2026, 19:06:58 UTC

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.

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: 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 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