{
  "id": "CVE-2026-42214",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42214",
  "published_at": "2026-05-07T18:14:20.246Z",
  "title": "Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext",
  "vendor": "dail8859",
  "product": "NotepadNext",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:dail8859:notepad_next:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "dail8859",
        "product": "NotepadNext",
        "ranges": [
          "\u003c 0.14"
        ],
        "fixed_in": [
          "0.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade NotepadNext to 0.14 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54g"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95ccc"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/dail8859/NotepadNext/releases/tag/v0.14"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
