CVE-2024-21891
8.8
HIGH
CVSS 3.1
EPSS 0.24%
Description
Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. 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.
How to fix CVE-2024-21891
To remediate CVE-2024-21891, upgrade the affected package to a fixed version below.
- —upgrade to 20.11.1 or later
- —upgrade to 20.11.1 or later
Is CVE-2024-21891 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 20.0.0, < 20.11.1, >= 21.0.0, < 21.6.2
- >= 20.0.0, < 20.11.1, >= 21.0.0, < 21.6.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
References (7)
- WEBgithub.com/nodejs/node/releases/tag/v20.11.1
- WEBgithub.com/nodejs/node/releases/tag/v21.6.2
- WEBhackerone.com/reports/2259914
- WEBnodejs.org/en/blog/vulnerability/february-2024-security-releases#multiple-permission-model-bypasses-due-to-improper-path-traversal-sequence-sanitization-cve-2024-21891---medium