Vulnerability in vega.js
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as DEBIAN-CVE-2025-59840 has been found in vega.js.
Attackers can target a specific entry point like vega over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade vega.js to 5.33.1+ds+~cs5.3.0-4 or later.
If unsure, ask your IT team or search "vega.js DEBIAN-CVE-2025-59840" on the vendor's site.
DEBIAN-CVE-2025-59840 (vega.js)
Attack surface: vega / vega.View / window / JSON
Patched: 5.33.1+ds+~cs5.3.0-4 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in vega.js. Attackers reach the vulnerable code path via vega.
Check the vendor advisory for the affected versions of vega.js. Attack surface: vega / vega.View / window / JSON.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 5.33.1+ds+~cs5.3.0-4.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'vega.js' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'vega.js' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
vega.jsを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade vega.js to 5.33.1+ds+~cs5.3.0-4ステージング環境で 5.33.1+ds+~cs5.3.0-4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12vega.js |
All versions→ Not listed |
Not listed |
| Debian:13vega.js |
All versions→ Not listed |
Not listed |
| Debian:14vega.js |
< 5.33.1+ds+~cs5.3.0-4→ 5.33.1+ds+~cs5.3.0-4 |
5.33.1+ds+~cs5.3.0-4 |
Original description The description as published by the source.
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In Vega prior to version 6.2.0, applications meeting 2 conditions are at risk of arbitrary JavaScript code execution, even if "safe mode" expressionInterpreter is used. They are vulnerable if they use vega in an application that attaches vega library and a vega.View instance similar to the Vega Editor to the global window and if they allow user-defined Vega JSON definitions (vs JSON that was is only provided through source code). Patches are available in the following Vega applications. If using the latest Vega line (6.x), upgrade to vega 6.2.0 / vega-expression 6.1.0 / vega-interpreter 2.2.1 (if using AST evaluator mode). If using Vega in a non-ESM environment, upgrade to vega-expression 5.2.1 / 1.2.1 (if using AST evaluator mode). Some workarounds are available. Do not attach vega View instances to global variables, and do not attach vega to the global window. These practices of attaching the vega library and View instances may be convenient for debugging, but should not be used in production or in any situation where vega/vega-lite definitions could be provided by untrusted parties.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org