CVE-2025-34146
JavaScript vulnerability analysis and mitigation

Overview

A prototype pollution vulnerability was discovered in @nyariv/sandboxjs versions <= 0.8.23. The vulnerability (CVE-2025-34146) allows attackers to inject arbitrary properties into Object.prototype via crafted JavaScript code. The issue was disclosed on July 31, 2025, affecting the JavaScript-based sandbox library (NVD, VulnCheck).

Technical details

The vulnerability stems from insufficient prototype access checks in the sandbox's executor logic, particularly in the handling of JavaScript function objects returned. The root cause is identified in the improper handling of property access for proto within the sandbox's executor logic, specifically in the anonymous function registered to handle property access (LispType.Prop) within the addOps function in src/executor.ts. The vulnerability has been assigned CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) and received a CVSS v4.0 base score of 7.0 (High) (GitHub Issue, NVD).

Impact

The vulnerability can result in a denial-of-service (DoS) condition or, under certain conditions, allow attackers to escape the sandboxed environment intended to restrict code execution. This could potentially compromise the security boundaries established by the sandbox, leading to unauthorized code execution (NVD).

Mitigation and workarounds

The vulnerability has been patched in version 0.8.24 of @nyariv/sandboxjs. The fix introduces additional checks for prototype access, particularly for the proto property, ensuring that any attempt to access or modify the prototype chain is properly validated against the configured whitelist (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management