{"answers":{"affected":"13 open source packages ship an affected version, including dash-core-components, dash and dash-html-components. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21485 exists.","fix":"Upgrade dash-core-components to a fixed version for your release line: 2.0.0 or 2.13.0.","what":"CVE-2024-21485 is a medium-severity cross-site scripting vulnerability in dash, published on 2 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-21485 and fix it if it is affected.\n\nWhat it is: CVE-2024-21485 is a medium-severity cross-site scripting vulnerability in dash, published on 2 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21485 exists.\n\nAffected packages and fixed versions:\n- dash-core-components (PyPI): affected all versions; fixed in 2.0.0\n- dash-core-components (PyPI): affected all versions; fixed in 2.0.0\n- dash-core-components (PyPI): affected all versions; fixed in 2.0.0\n- dash-core-components (npm): affected all versions; fixed in 2.13.0\n- dash-core-components (npm): affected all versions; fixed in 2.13.0\n- dash (PyPI): affected all versions; fixed in 2.13.0, 2.15.0\n- dash (PyPI): affected all versions; fixed in 2.15.0\n- dash (PyPI): affected all versions; fixed in 2.15.0\n- dash-html-components (PyPI): affected all versions; fixed in 2.0.0\n- dash-html-components (PyPI): affected all versions; fixed in 2.0.0\n- dash-html-components (PyPI): affected all versions; fixed in 2.0.0\n- dash-html-components (npm): affected all versions; fixed in 2.0.16\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-2024-21485/ (Markdown: https://insights.sbomify.com/CVE-2024-21485/index.md)","id":"CVE-2024-21485","markdown":"https://insights.sbomify.com/CVE-2024-21485/index.md","name":"CVE-2024-21485","record":{"aliases":["GHSA-547x-748v-vp6p","PYSEC-2024-35","PYSEC-2026-219","PYSEC-2026-220"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Dash web framework","requires_auth":"low_privilege","summary":"An authenticated attacker can steal data and access tokens from other users via XSS in Dash apps that store and reload user input.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"dash","vendor":"plotly"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N/E:P","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Versions of the package dash-core-components before 2.13.0; versions of the package dash-core-components before 2.0.0; versions of the package dash before 2.15.0; versions of the package dash-html-components before 2.0.0; versions of the package dash-html-components before 2.0.16 are vulnerable to Cross-site Scripting (XSS) when the href of the a tag is controlled by an adversary. An authenticated attacker who stores a view that exploits this vulnerability could steal the data that's visible to another user who opens that view - not just the data already included on the page, but they could also, in theory, make additional requests and access other data accessible to this user. In some cases, they could also steal the access tokens of that user, which would allow the attacker to act as that user, including viewing other apps and resources hosted on the same server.\r\r**Note:**\r\rThis is only exploitable in Dash apps that include some mechanism to store user input to be reloaded by a different user.","ecosystems":["PyPI","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-21485.yaml","stars":null,"title":"Dash Framework - Cross-site Scripting"}],"tier":"weaponised"},"has_fix":true,"headline":"Dash apps vulnerable to Cross-site Scripting","id":"CVE-2024-21485","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":13,"n_references":9,"next":{"headline":"network Arbitrary Command Injection vulnerability","id":"CVE-2024-21488"},"packages":[{"ecosystem":"PyPI","fixed":["2.13.0","2.15.0"],"introduced":["0","2.14.0"],"last_affected":[],"package":"dash","purl":"pkg:pypi/dash","source":"PYSEC-2024-35"},{"ecosystem":"PyPI","fixed":["2.15.0"],"introduced":["0"],"last_affected":[],"package":"dash","purl":null,"source":"GHSA-547x-748v-vp6p"},{"ecosystem":"PyPI","fixed":["2.15.0"],"introduced":["0"],"last_affected":[],"package":"dash","purl":"pkg:pypi/dash","source":"GHSA-547x-748v-vp6p"},{"ecosystem":"PyPI","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"dash-core-components","purl":null,"source":"GHSA-547x-748v-vp6p"},{"ecosystem":"PyPI","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"dash-core-components","purl":"pkg:pypi/dash-core-components","source":"GHSA-547x-748v-vp6p"},{"ecosystem":"PyPI","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"dash-core-components","purl":"pkg:pypi/dash-core-components","source":"PYSEC-2026-219"},{"ecosystem":"PyPI","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"dash-html-components","purl":null,"source":"GHSA-547x-748v-vp6p"},{"ecosystem":"PyPI","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"dash-html-components","purl":"pkg:pypi/dash-html-components","source":"GHSA-547x-748v-vp6p"},{"ecosystem":"PyPI","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"dash-html-components","purl":"pkg:pypi/dash-html-components","source":"PYSEC-2026-220"},{"ecosystem":"npm","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"dash-core-components","purl":null,"source":"GHSA-547x-748v-vp6p"},{"ecosystem":"npm","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"dash-core-components","purl":"pkg:npm/dash-core-components","source":"GHSA-547x-748v-vp6p"},{"ecosystem":"npm","fixed":["2.0.16"],"introduced":["0"],"last_affected":[],"package":"dash-html-components","purl":null,"source":"GHSA-547x-748v-vp6p"},{"ecosystem":"npm","fixed":["2.0.16"],"introduced":["0"],"last_affected":[],"package":"dash-html-components","purl":"pkg:npm/dash-html-components","source":"GHSA-547x-748v-vp6p"}],"prev":{"headline":"Marvin Attack of RSA and RSAOAEP decryption in jsrsasign","id":"CVE-2024-21484"},"products":["dash","dash-core-components","dash-html-components"],"published":"2024-02-02","related":[],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-15","vendors":["n/a"]},"summary":"An authenticated attacker can steal data and access tokens from other users via XSS in Dash apps that store and reload user input.","url":"https://insights.sbomify.com/CVE-2024-21485/"}