CVE-2023-23918: A privilege escalation vulnerability exists in Node.js <19.6.1, <18.14.1, <16.19.1 and <14.21.3 that made it possible to bypass the experimental Permissions...
High CVSS 7.5
- CVE id
- CVE-2023-23918
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Node.js Runtimes and servers |
>= 14.0.0, <= 14.14.0 >= 14.0.0, < 14.21.3 >= 16.0.0, <= 16.12.0 >= 16.0.0, < 16.19.1 >= 18.0.0, <= 18.11.0 >= 18.0.0, < 18.14.1 >= 19.0.0, < 19.6.1 |
14.21.3, 16.19.1, 18.14.1, 19.6.1 |
How to fix it
Upgrade Node.js to the fixed release of the line you run: 14.21.3, 16.19.1, 18.14.1, 19.6.1.
node --version
- Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
A privilege escalation vulnerability exists in Node.js <19.6.1, <18.14.1, <16.19.1 and <14.21.3 that made it possible to bypass the experimental Permissions (https://nodejs.org/api/permissions.html) feature in Node.js and access non authorized modules by using process.mainModule.require(). This only affects users who had enabled the experimental permissions option with --experimental-policy.
References
- CVE-2023-23918 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-23918
- Web: https://nodejs.org/en/blog/vulnerability/february-2023-security-releases/
- Web: https://security.netapp.com/advisory/ntap-20230316-0008/
- Web: https://nodejs.org/en/blog/vulnerability/february-2023-security-releases/
- Web: https://security.netapp.com/advisory/ntap-20230316-0008/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.