Security Resilience

CVE-2024-21896

Nodejs Node.Js 20.0.0 – 20.11.1

Published
20 February 2024
Modified
17 June 2026
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.013 70th percentile
Risk Priority 74 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-21896 is a critical-severity Path Traversal: 'dir/../../filename' (CWE-27) vulnerability in Nodejs Node.Js. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 30% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result…

more

of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-59466Same product: Nodejs Node.Js
CVE-2026-21714Same product: Nodejs Node.Js
CVE-2025-59465Same product: Nodejs Node.Js
CVE-2023-39331Same product: Nodejs Node.Js
CVE-2024-21891Same product: Nodejs Node.Js
CVE-2023-32558Same product: Nodejs Node.Js
CVE-2026-48933Same product: Nodejs Node.Js
CVE-2026-48618Same product: Nodejs Node.Js
CVE-2025-55130Same product: Nodejs Node.Js
CVE-2026-48931Same product: Nodejs Node.Js

Affected Assets

nodejs
node.js
20.0.0 — 20.11.1 · 21.0.0 — 21.6.2

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Input validation directly stops untrusted pathnames containing ../ sequences from being used to construct traversals outside the intended directory.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input validation and path sanitization that prevent directory traversal flaws.

ID.RA-01 partial match
blocks

Vulnerability identification processes will discover path traversal weaknesses during code or configuration review.

PR.AA-05 partial match
blocks

Least-privilege file permissions and access enforcement can limit the damage from a successful traversal.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches path-traversal flaws before release but does not itself implement the control.

prevents

Training developers about input validation and path handling reduces path-traversal introductions, but the defect is a specific technical implementation error (multiple '../' neutralization) that training alone catches only a minority of, with secure coding standards, code review and security testing carrying the stronger preventive effect.

prevents

Secure coding standards require neutralizing '../' sequences and using safe file APIs, eliminating this exact weakness.

prevents

A.8.30 contracts secure design, coding and testing practices (8.25–8.29) into the supplier relationship, so a faithfully implemented clause reduces ordinary implementation-phase software weaknesses like path traversal in delivered code, but the effect is mediated through fallible supplier practice and the dependent controls themselves act only partially.

finds

A.8.8's reach is disclosure-based (vendor-published advisories and component inventory), and path traversal commonly surfaces as CVEs in third-party software, so A.8.8 finds the disclosed share; however, most CWE-27 instances are first-party code defects in custom applications that never appear in published advisories, leaving a nameable remainder outside the control's reach.

References