Time-of-check Time-of-use (TOCTOU) Race Condition Affecting nodejs/node package, versions [22.0.0,22.23.0)[24.0.0,24.17.0)[25.0.0,26.1.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (27th 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-NODEJSNODE-17430981
  • published23 Jun 2026
  • disclosed22 Jun 2026
  • credityushengchen

Introduced: 22 Jun 2026

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

How to fix?

Upgrade nodejs/node to version 22.23.0, 24.17.0, 26.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the HTTP Agent. An attacker can cause a client to accept a response as valid before the client has sent its request by exploiting the timing of HTTP responses.

CVSS Base Scores

version 4.0
version 3.1