CVEfocus › CVE database › CVE-2025-25304

CVE-2025-25304Vega allows Cross-site Scripting via the vlSelectionTuples function

CVSS 6.9 MediumEPSS 1.0% (higher than 60% of CVEs)Published 2025-02-14Updated 2025-02-14Assigner: GitHub_M

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Prior to version 5.26.0 of vega and 5.4.2 of vega-selections, the `vlSelectionTuples` function can be used to call JavaScript functions, leading to cross-site scripting.`vlSelectionTuples` calls multiple functions that can be controlled by an attacker, including one call with an attacker-controlled argument. This can be used to call `Function()` with arbitrary JavaScript and the resulting function can be called with `vlSelectionTuples` or using a type coercion to call `toString` or `valueOf`. Version 5.26.0 of vega and 5.4.2 of vega-selections fix this issue.

CWE-79

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10vega.jsFix pendingUBUNTU-CVE-2025-25304
Ubuntu 26.04vega.jsUnder investigationUBUNTU-CVE-2025-25304
Ubuntu 25.10vega.jsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-25304
Ubuntu 24.04vega.jsUnder investigationUBUNTU-CVE-2025-25304
Debian 14vega.jsFixed5.28.0+ds+~cs5.3.0-1DEBIAN-CVE-2025-25304
Debian 13vega.jsFixed5.28.0+ds+~cs5.3.0-1DEBIAN-CVE-2025-25304
Debian 12vega.jsFix pendingDEBIAN-CVE-2025-25304
npm libraryvegaFixed5.26.0GHSA-mp7w-mhcv-673j
npm libraryvega-selectionsFixed5.4.2GHSA-mp7w-mhcv-673j

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.