CVE-2022-25904
criticalpriority · track · 39EPSS 0.009 · 61 %ileEUUSEPSS · scored 2026-10-27
All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-33vh-7x8q-mg35safe-eval vulnerable to Prototype Pollution2022-12-20ghsa · osvUS
All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-25904/cnnvd
- https://github.com/hacksparrow/safe-eval/issues/26cnnvd
- https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701cnnvd
- https://github.com/hacksparrow/safe-eval/issues/26enisa_euvd
- https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701enisa_euvd
- https://github.com/hacksparrow/safe-eval/issues/26ExploitIssue TrackingThird Party Advisorynvd
- https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701ExploitIssue TrackingThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan