CVE-2023-29199
JavaScript vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2023-29199) was discovered in the VM2 library, affecting versions up to 3.9.15. The vulnerability resides in the library's source code transformer, specifically in the exception sanitization logic. This security flaw was discovered by Xion (SeungHyun Lee) of KAIST Hacking Lab and was patched in version 3.9.16 released on April 11, 2023 (GitHub Advisory, SecurityOnline).

Technical details

The vulnerability exists in the source code transformer's exception sanitization logic, allowing attackers to bypass the handleException() function and leak unsanitized host exceptions. The flaw received a CVSS v3.1 base score of 9.8 (Critical), with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The issue specifically relates to how code is preprocessed with transformer() in lib/transformer.js, where the identifier name of catch clause is interpolated into insertions as code, leading to potential sandbox escape (NVD, GitHub Advisory).

Impact

The vulnerability allows threat actors to bypass sandbox protections and gain remote code execution rights on the host running the sandbox. With VM2 being widely used (over 16 million monthly downloads) across various applications including integrated development environments (IDEs), code editors, function-as-a-service (FaaS) solutions, pen-testing frameworks, and security tools, the potential impact is extensive (SecurityOnline).

Mitigation and workarounds

The vulnerability has been patched in version 3.9.16 of VM2. No alternative workarounds are available, making it crucial for users to update to the patched version immediately (GitHub Advisory).

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-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025

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