{"answers":{"affected":"4 open source packages ship an affected version, including vega and vega-functions. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-26486 in the wild and no public exploit code.","fix":"Upgrade vega to 5.23.0 or later.","what":"CVE-2023-26486 is a medium-severity cross-site scripting vulnerability in vega, published on 3 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-26486 and fix it if it is affected.\n\nWhat it is: CVE-2023-26486 is a medium-severity cross-site scripting vulnerability in vega, published on 3 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-26486 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- vega (npm): affected all versions; fixed in 5.23.0\n- vega (npm): affected all versions; fixed in 5.23.0\n- vega-functions (npm): affected all versions; fixed in 5.13.1\n- vega-functions (npm): affected all versions; fixed in 5.13.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-26486/ (Markdown: https://insights.sbomify.com/CVE-2023-26486/index.md)","id":"CVE-2023-26486","markdown":"https://insights.sbomify.com/CVE-2023-26486/index.md","name":"CVE-2023-26486","record":{"aliases":["DEBIAN-CVE-2023-26486","GHSA-4vq7-882g-wcg4"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Vega visualization library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript by exploiting the Vega scale expression function to escape the sandbox, affecting applications using this visualization library.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"vega-functions","vendor":"vega-functions_project"},{"product":"vega","vendor":"vega_project"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. The Vega `scale` expression function has the ability to call arbitrary functions with a single controlled argument. The scale expression function passes a user supplied argument group to getScale, which is then used as if it were an internal context. The context.scales[name].value is accessed from group and called as a function back in scale. This can be exploited to escape the Vega expression sandbox in order to execute arbitrary JavaScript. This issue has been fixed in version 5.13.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Vega `scale` expression function cross site scripting","id":"CVE-2023-26486","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":4,"n_references":5,"next":{"headline":"Vega has cross-site scripting vulnerability in `lassoAppend` function","id":"CVE-2023-26487"},"packages":[{"ecosystem":"npm","fixed":["5.23.0"],"introduced":["0"],"last_affected":[],"package":"vega","purl":null,"source":"GHSA-4vq7-882g-wcg4"},{"ecosystem":"npm","fixed":["5.23.0"],"introduced":["0"],"last_affected":[],"package":"vega","purl":"pkg:npm/vega","source":"GHSA-4vq7-882g-wcg4"},{"ecosystem":"npm","fixed":["5.13.1"],"introduced":["0"],"last_affected":[],"package":"vega-functions","purl":null,"source":"GHSA-4vq7-882g-wcg4"},{"ecosystem":"npm","fixed":["5.13.1"],"introduced":["0"],"last_affected":[],"package":"vega-functions","purl":"pkg:npm/vega-functions","source":"GHSA-4vq7-882g-wcg4"}],"prev":{"headline":"Quadratic complexity may lead to a denial of service in cmark-gfm","id":"CVE-2023-26485"},"products":["vega"],"published":"2023-03-03","related":[{"cvss_score":7.2,"headline":"`vega-functions` vulnerable to Cross-site Scripting via `setdata` function","id":"CVE-2025-66648","kev_date_added":null,"published":"2026-01-05"},{"cvss_score":6.5,"headline":"Vega has cross-site scripting vulnerability in `lassoAppend` function","id":"CVE-2023-26487","kev_date_added":null,"published":"2023-03-03"},{"cvss_score":5.3,"headline":"Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode `expressionInterpeter`","id":"CVE-2025-26619","kev_date_added":null,"published":"2025-03-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["vega"]},"summary":"Attackers can execute arbitrary JavaScript by exploiting the Vega scale expression function to escape the sandbox, affecting applications using this visualization library.","url":"https://insights.sbomify.com/CVE-2023-26486/"}