Sandbox escape via unchecked function prototype access
Published Jul 31, 2025 · Updated Jun 23, 2026
Prototype pollution in nyariv SandboxJS 0.8.23 and earlier allows local users to modify Object.prototype via crafted JavaScript. The executor's function-property branch treats an inherited proto lookup as unowned and skips SandboxError, while the parser misses constructor-created functions. Exploitation requires crafted code to run through an embedding application; polluted host objects can crash the process or permit execution outside the sandbox.
Summary
What happened
Prototype pollution in nyariv SandboxJS 0.8.23 and earlier allows local users to modify Object.prototype via crafted JavaScript. The executor's function-property branch treats an inherited proto lookup as unowned and skips SandboxError, while the parser misses constructor-created functions. Exploitation requires crafted code to run through an embedding application; polluted host objects can crash the process or permit execution outside the sandbox.
The record
- CVE
- CVE-2025-34146
- Published
- Jul 31, 2025
- Updated
- Jun 23, 2026
- Vendor
- nyariv
- Product
- SandboxJS
- Classifications
- CWE-1321, CAPEC-77, T1059.007
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 31, 2025CVE publishedPublication date reported by the CVE source.
- Jun 23, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=0.8.23
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- nyariv_sandboxjs_0.8.23_prototype_pollution proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo