Vulnerability Description
A prototype pollution vulnerability exists in @nyariv/sandboxjs versions <= 0.8.23, allowing attackers to inject arbitrary properties into Object.prototype via crafted JavaScript code. This can result in a denial-of-service (DoS) condition or, under certain conditions, escape the sandboxed environment intended to restrict code execution. The vulnerability stems from insufficient prototype access checks in the sandbox’s executor logic, particularly in the handling of JavaScript function objects returned.
Related Weaknesses (CWE)
References
- https://gist.github.com/Hagrid29/9df27829a491080f923c4f6b8518d7e3
- https://github.com/nyariv/SandboxJS/issues/31
- https://www.npmjs.com/package/@nyariv/sandboxjs
- https://www.vulncheck.com/advisories/nyariv-sandboxjs-prototype-pollution-sandbo
FAQ
What is CVE-2025-34146?
CVE-2025-34146 is a documented vulnerability. A prototype pollution vulnerability exists in @nyariv/sandboxjs versions <= 0.8.23, allowing attackers to inject arbitrary properties into Object.prototype via crafted JavaScript code. This can result...
How severe is CVE-2025-34146?
CVSS scoring is not yet available for CVE-2025-34146. Check NVD for updates.
Is there a patch for CVE-2025-34146?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.