CVE-2023-30581 Security feature bypass in Node
Attackers can bypass Node.js experimental policy restrictions to load unauthorized modules using prototype pollution techniques.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-30581?
CVE-2023-30581 is a high-severity vulnerability in Nodejs Node.js, published on 22 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The use of __proto__ in process.mainModule.__proto__.require() can bypass the policy mechanism and require modules outside of the policy.json definition. This vulnerability affects all users using the experimental policy mechanism in all active release lines: v16, v18 and, v20.
Please note that at the time this CVE was issued, the policy is an experimental feature of Node.js
Weakness: CWE-862
Which versions are affected by CVE-2023-30581?
2 open source packages ship an affected version, including node and node-min. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | From 16.0.0 | 16.20.1, 18.16.1, 20.3.1 |
node-min Bitnami | From 16.0.0 | 16.20.1, 18.16.1, 20.3.1 |
Products include Nodejs Node.js.
How do I fix CVE-2023-30581?
Upgrade node to a fixed version for your release line: 16.20.1, 18.16.1 or 20.3.1.
Is CVE-2023-30581 being exploited?
There is no known exploitation of CVE-2023-30581 in the wild and no public exploit code.
Other vulnerabilities in Nodejs Node.js
Sources
Also known as BIT-node-2023-30581, BIT-node-min-2023-30581, DEBIAN-CVE-2023-30581, GHSA-86v4-9wq7-fx97.