Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vega-selections
  4. ›
  5. CVE-2025-65110

CVE-2025-65110: Vega XSS via expression abusing vlSelectionTuples function array map calls in environments with satisfactory function gadgets in the global scope

January 5, 2026 (updated January 6, 2026)

Vega offers the evaluation of expressions in a secure context. Arbitrary function call is prohibited. When an event is exposed to an expression, member get of window objects is possible. Because of this exposure, in some applications, a crafted object that sets a map value with a function copied from the window that results in calling this.foo(this.bar) can be passed to the vlSelectionTuples function, calling the copied map function, allowing DOM XSS to be achieved.

In practice, an accessible gadget like this exists in the global VEGA_DEBUG code.

vlSelectionTuples({
map: event.view.VEGA_DEBUG.vega.CanvasHandler.prototype.on,
eventName: event.view.console.log,
_handlers:{
undefined: 'alert(origin + ` XSS on version `+ VEGA_DEBUG.VEGA_VERSION)'
},
_handlerIndex: event.view.eval
})

References

  • github.com/advisories/GHSA-829q-m3qg-ph8r
  • github.com/vega/vega
  • github.com/vega/vega/security/advisories/GHSA-829q-m3qg-ph8r
  • nvd.nist.gov/vuln/detail/CVE-2025-65110

Code Behaviors & Features

Detect and mitigate CVE-2025-65110 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.6.3, all versions starting from 6.0.0 before 6.1.2

Fixed versions

  • 5.6.3
  • 6.1.2

Solution

Upgrade to versions 5.6.3, 6.1.2 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/vega-selections/CVE-2025-65110.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:30 +0000.