CVE Explorer
CVE-2026-42214
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"NotepadNext","vendor":"dail8859","versions":[{"status":"affected","version":"< 0.14"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc","tags":["x_refsource_MISC"],"url":"https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/cna/references/1
{"name":"https://github.com/dail8859/NotepadNext/releases/tag/v0.14","tags":["x_refsource_MISC"],"url":"https://github.com/dail8859/NotepadNext/releases/tag/v0.14"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/cna/references/2
{"tags":["exploit"],"url":"https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/adp/0/references/0
{"name":"https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g","tags":["x_refsource_CONFIRM"],"url":"https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8e6bd02094d1ee301da6314202ced5a5299dbc03d92f36516fb1713e15d69170 · sha256:e538b47efe3c18ed… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.