Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-27793 EUVD-2025-14832GHSA-963h-3v39-3pqf

Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]

Published Mar 27, 2025 · Updated Mar 27, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
vega vega < 5.32.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vega.js 5.33.1+ds+~cs5.3.0-1 —
Debian 13 vega.js No fix yet —
Debian 12 vega.js No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 vega.js No fix yet —
Ubuntu 26.04 LTS vega.js No fix yet —
Ubuntu 25.10 vega.js No fix yet —
Ubuntu 24.04 LTS vega.js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm vega < 5.32.0 5.32.0 GHSA-963h-3v39-3pqf
npm vega-functions < 5.17.0 5.17.0 GHSA-963h-3v39-3pqf

References