Time-of-check Time-of-use (TOCTOU) Race Condition Affecting notepad-plus-plus/notepad-plus-plus package, versions [,8.9.6.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-NOTEPADPLUSPLUSNOTEPADPLUSPLUS-17660819
  • published28 Jun 2026
  • disclosed26 Jun 2026
  • creditUnknown

Introduced: 26 Jun 2026

CVE-2026-52885  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade notepad-plus-plus/notepad-plus-plus to version 8.9.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition through the NppCommands.cpp process. An attacker can execute arbitrary commands by swapping the shortcuts.xml file between application startup and command execution, causing a malicious payload to be loaded into memory while the integrity check validates a legitimate file on disk. This is only exploitable if the attacker has write access to the shortcuts.xml file prior to application launch.

CVSS Base Scores

version 4.0
version 3.1