SecurityContext

CVE-2026-42214: Notepad Next - Command Injection

  • Cve: CVE-2026-42214
  • Name: Notepad Next - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary commands on the victim's system by opening a crafted file, potentially leading to full system compromise.
  • Remediation: Update to version 0.14 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00242
  • Epss percentile: 0.15371
  • Assignee: [email protected]
  • Published at: 2026-05-07T19:16:01Z
  • Age in days: 201
  • Modified at: 2026-10-26T20:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42214
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54gnvd2026-05-07

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/dail8859/NotepadNext/commit/f3ca1b10aca52f05fd7f4f5ebf9b566d6cd95cccPatch
https://github.com/dail8859/NotepadNext/security/advisories/GHSA-m5fq-c9x5-w54gExploit, Mitigation, Vendor Advisory
https://github.com/dail8859/NotepadNext/releases/tag/v0.14Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
dail8859:notepad_next< 0.14nonvd/v1/products/dail8859/notepad_next

Projects

RepositoryLink kindsIndexedUrl
dail8859/NotepadNextcommit, fix, releases, security_advisoryyes/v1/repositories/dail8859/NotepadNext

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-05-07
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts