CVE-2023-26121 safe-eval vulnerable to Prototype Pollution via the safeEval function
Attackers can execute arbitrary code via prototype pollution in the safe-eval library due to improper input sanitization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-26121?
CVE-2023-26121 is a high-severity code injection vulnerability in safe-eval, published on 11 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper sanitization of its parameter content.
Weakness: CWE-1321
Which versions are affected by CVE-2023-26121?
2 open source packages ship an affected version, including safe-eval. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
safe-eval npm | All versions to 0.4.2 | None |
safe-eval npm | All versions to 0.4.2 | None |
Products include Safe-Eval Project Safe-Eval.
How do I fix CVE-2023-26121?
No fix has been published for CVE-2023-26121 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-26121 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26121 exists.
Other vulnerabilities in safe-eval
Sources
Also known as GHSA-hcg3-56jf-x4vh.