{"id":"CVE-2026-42214","published":"2026-05-07T18:14:20Z","modified":"2026-05-09T03:55:59Z","title":"Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext","vendor":"dail8859","product":"NotepadNext","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00281,"percentile":0.13135,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc","tags":["x_refsource_MISC"]},{"url":"https://github.com/dail8859/NotepadNext/releases/tag/v0.14","tags":["x_refsource_MISC"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.63},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"dail8859","affectedVersions":[{"vendor":"dail8859","product":"NotepadNext","versions":["< 0.14"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-08T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-28410","exploited":false,"provenance":"source"}}