CVE-2025-27793
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-27793 affects Vega, a visualization grammar for creating, saving, and sharing interactive visualization designs. The vulnerability was discovered in versions prior to 5.32.0 (corresponding to vega-functions prior to 5.17.0), where users running Vega/Vega-lite JSON definitions could execute unexpected JavaScript code when drawing graphs, unless using the vega-interpreter. The issue was disclosed on March 27, 2025 (GitHub Advisory).

Technical details

The vulnerability stems from improper handling of RegExp.prototype[@@replace] functionality. When calling the replace function with a RegExp-like pattern, it invokes RegExp.prototype[@@replace], which can then execute an attacker-controlled exec function. The vulnerability is classified under CWE-87 (Improper Neutralization of Alternate XSS Syntax) and CWE-79 (Improper Neutralization of Input During Web Page Generation). The CVSS v4.0 score is 5.3 (Medium), with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N (NVD).

Impact

The vulnerability allows attackers to execute arbitrary JavaScript code when drawing graphs through Vega/Vega-lite JSON definitions. This could potentially lead to cross-site scripting attacks if an attacker can manipulate the event.view to gain access to eval functionality (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Vega version 5.32.0 and vega-functions version 5.17.0. As a workaround, users can utilize Vega with the expression interpreter, which provides an alternative evaluation method that is not vulnerable to this attack. The interpreter can be enabled by setting the {ast: true} option during parsing and passing the interpreter as an option to the Vega View constructor (Vega Docs).

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-11148CRITICAL9.8
  • JavaScriptJavaScript
  • check-branches
NoNoSep 30, 2025
CVE-2025-53967HIGH7.5
  • JavaScriptJavaScript
  • figma-developer-mcp
NoYesSep 30, 2025
CVE-2025-56572HIGH7.5
  • JavaScriptJavaScript
  • financejs
NoNoSep 30, 2025
CVE-2025-56571HIGH7.5
  • JavaScriptJavaScript
  • financejs
NoNoSep 30, 2025
CVE-2025-11149HIGH7.5
  • JavaScriptJavaScript
  • node-static
NoNoSep 30, 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