{"schemaVersion":3,"id":"CVE-2025-25304","aliases":["UBUNTU-CVE-2025-25304","DEBIAN-CVE-2025-25304","GHSA-mp7w-mhcv-673j"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2025-02-14T19:28:00.388Z","modified":"2025-02-14T19:44:24.152Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00651,"percentile":0.50531,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00651},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00651,"percentile":0.50531}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00651,"percentile":0.50531}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"debian","product":"vega.js","name":"vega.js","label":"vega.js","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vega.js","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.28.0+ds+~cs5.3.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.28.0+ds+~cs5.3.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"vega.js","name":"vega.js","label":"vega.js","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vega.js","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"Npm","product":"vega","name":"vega","label":"vega","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/vega","purlType":"npm","versions":[{"text":"< 5.26.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.26.0","eol":null,"hubHref":null},{"vendor":"Npm","product":"vega-selections","name":"vega-selections","label":"vega-selections","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/vega-selections","purlType":"npm","versions":[{"text":"< 5.4.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.2","eol":null,"hubHref":null},{"vendor":"vega","product":"vega","name":"vega","label":"vega","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.26.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.26.0","eol":null,"hubHref":"/vendor/vega/vega"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j","label":"github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB"]},{"url":"https://github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e","label":"github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js#L14","label":"github.com/vega/…","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-25304","label":"ubuntu.com/security/CVE-2025-25304","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-25304","label":"www.cve.org/CVERecord?id=CVE-2025-25304","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-25304","label":"security-tracker.debian.org/tracker/CVE-2025-25304","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25304","label":"nvd.nist.gov/vuln/detail/CVE-2025-25304","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/vega/vega","label":"github.com/vega/vega","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-02-14T19:28:00.388Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-14T19:44:24.152Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:00:52.749Z","stale":false,"partial":false}}