Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In Vega prior to version 5.32.0, corresponding to vega-functions prior to version 5.17.0, users running Vega/Vega-lite JSON definitions could run unexpected JavaScript code when drawing graphs, unless the library was used with the `vega-interpreter`. Vega version 5.32.0 and vega-functions version 5.17.0 fix the issue. As a workaround, use `vega` with expression interpreter.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vega | vega | before 5.32.0 | 5.32.0 | Patch available | CNA |
| — | vega (npm) | before 5.32.0 | 5.32.0 | Patch available | GHSA-963h-3v39-3pqf |
| — | vega-functions (npm) | before 5.17.0 | 5.17.0 | Patch available | GHSA-963h-3v39-3pqf |
- vega Vendorvega Affected before 5.32.0 Fixed in 5.32.0 Patch available CNA
- vega (npm) Vendor— Affected before 5.32.0 Fixed in 5.32.0 Patch available GHSA-963h-3v39-3pqf
- vega-functions (npm) Vendor— Affected before 5.17.0 Fixed in 5.17.0 Patch available GHSA-963h-3v39-3pqf
Remediation
- Fix · CNA vega (vega) Fixed in 5.32.0
- Fix · GHSA-963h-3v39-3pqf vega (npm) Fixed in 5.32.0 Advisory →
- Fix · GHSA-963h-3v39-3pqf vega-functions (npm) Fixed in 5.17.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-27793
- 2026-10-03 Alias added: GHSA-963h-3v39-3pqf
References
More vega vulnerabilities
- TI-2025-40262 Cross-site scripting in vega CVSS 3.1CRITICAL 9.3
- TI-2025-18958 Vega allows Cross-site Scripting via the vlSelectionTuples function CVSS 4.0MEDIUM 6.9
- TI-2025-37279 Cross-site scripting in vega CVSS 3.1HIGH 8.1
- TI-2025-19556 Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode `expressionInterpeter` CVSS 4.0MEDIUM 5.3
- TI-2020-16117 Cross-site scripting in vega CVSS 3.1HIGH 8.7
- TI-2026-02866 VEGA: Privilege escalation through unsecured configuration interface in VEGAPULS devices CVSS 3.1HIGH 7.5
Sources
- CVE-2025-27793 · CVE Program
- CVE-2025-27793 · NVD
- FIRST EPSS
- GHSA-963h-3v39-3pqf · GitHub Advisory Database · CC BY 4.0
- CVE-2025-27793 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences