{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:dail8859:notepad_next:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.14"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0c63b760ae82bb0eabbf070030454bae9df9ab5b"
            },
            {
              "fixed": "f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc"
            }
          ],
          "repo": "https://github.com/dail8859/notepadnext",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m5fq-c9x5-w54g"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42214.json"
  },
  "details": "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.",
  "id": "CVE-2026-42214",
  "modified": "2026-07-15T01:48:55.875325394Z",
  "published": "2026-05-07T18:14:20.246Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/dail8859/NotepadNext/releases/tag/v0.14"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42214.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42214"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext"
}