CVE-2025-34146 Details
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.
A prototype pollution vulnerability has been identified in @nyariv/sandboxjs versions through 0.8.23. This vulnerability allows attackers to inject arbitrary properties into Object.prototype using crafted JavaScript code. The issue arises from inadequate checks on prototype access within the sandbox's execution logic, particularly when managing JavaScript function objects. Exploitation of this vulnerability can lead to a denial-of-service condition or, in certain scenarios, escape the intended restrictions of the sandboxed environment.
Users can upgrade to @nyariv/sandboxjs version 0.8.24 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 31, 2025CISA-ADP
Assessed Jul 31, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/Hagrid29/9df27829a491080f923c4f6b8518d7e3 | [email protected] | ExploitTechnical Analysis |
| https://github.com/nyariv/SandboxJS/issues/31 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.npmjs.com/package/@nyariv/sandboxjs | [email protected] | ProductVendor |
| https://www.vulncheck.com/advisories/nyariv-sandboxjs-prototype-pollution-sandbox-escape-dos | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @nyariv/sandboxjs | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 31, 2025 | New CVE Received | [email protected] |
Volerion