{"id":"CVE-2026-42214","aliases":["CVE-2026-42214"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Notepad Next es una reimplementación multiplataforma de Notepad++. Antes de la versión 0.14, la función detectLanguageFromExtension() de NotepadNext interpola la extensión de un archivo directamente en un script Lua sin sanitización. Un atacante puede crear un nombre de archivo cuya extensión contiene código Lua, que se ejecuta automáticamente cuando la víctima abre el archivo en NotepadNext. Dado que luaL_openlibs() se llama incondicionalmente, las bibliotecas completas os, io y package están disponibles para el código inyectado, lo que permite la ejecución arbitraria de comandos. Este problema ha sido parcheado en la versión 0.14.","source":"nvd"}],"published":"2026-05-07T18:14:20.246Z","modified":"2026-10-26T20:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 0.14","status":"affected"}],"vendor":"dail8859","product":"NotepadNext","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.14"}],"vendor":"dail8859","product":"notepad_next","cpe":"cpe:2.3:a:dail8859:notepad_next:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dail8859/NotepadNext/releases/tag/v0.14","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-05-08T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42214","url":"https://www.cve.org/CVERecord?id=CVE-2026-42214","licence":"CVE Terms of Use","modified":"2026-05-09T03:55:59.742Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42214","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42214","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:20.897Z","epss":{"score":0.00242,"percentile":0.16528,"date":"2026-12-01T12:00:22.000Z"}}