CVE-2023-26121 safe-eval vulnerable to Prototype Pollution via the safeEval function

High 7.5 Published Updated

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.

PackageAffectedFixed in
safe-eval npmAll versions to 0.4.2None
safe-eval npmAll versions to 0.4.2None

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.

Sources

Also known as GHSA-hcg3-56jf-x4vh.

Is CVE-2023-26121 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free