# CVE-2024-21485: Dash apps vulnerable to Cross-site Scripting

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N/E:P`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: None; E: P
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.85% (percentile 80, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-547x-748v-vp6p, PYSEC-2024-35, PYSEC-2026-219, PYSEC-2026-220
- **Published:** 2024-02-02T05:00:01.368Z
- **Modified:** 2026-07-20T13:45:33.730Z

## Who should check

- Projects that depend on npm package dash-core-components (\< 2.13.0)
- Projects that depend on PyPI package dash-html-components (\< 2.0.0)
- Projects that depend on PyPI package dash-core-components (\< 2.0.0)
- Projects that depend on PyPI package dash (\< 2.15.0)
- Projects that depend on npm package dash-html-components (\< 2.0.16)
- Anyone running dash-core-components \< 2.13.0
- Anyone running dash-core-components \< 2.0.0
- Anyone running dash \< 2.15.0

## 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.\*\*Note:\*\*This is only exploitable in Dash apps that include some mechanism to store user input to be reloaded by a different user.

## Affected and fixed versions

- npm `dash-core-components`: affected \< 2.13.0; fixed 2.13.0 (osv)
- PyPI `dash-html-components`: affected \< 2.0.0; fixed 2.0.0 (osv)
- PyPI `dash-core-components`: affected \< 2.0.0; fixed 2.0.0 (osv)
- PyPI `dash`: affected \< 2.15.0; fixed 2.15.0, 2.13.0 (osv)
- npm `dash-html-components`: affected \< 2.0.16; fixed 2.0.16 (osv)
- dash-core-components: \< 2.13.0 (cvelist)
- dash-core-components: \< 2.0.0 (cvelist)
- dash: \< 2.15.0 (cvelist)
- dash-html-components: \< 2.0.0 (cvelist)
- dash-html-components: \< 2.0.16 (cvelist)

## Mitigation

- Upgrade dash-core-components to 2.13.0 or later.
- Upgrade dash-html-components to 2.0.0 or later.
- Upgrade dash-core-components to 2.0.0 or later.
- Upgrade dash to one of 2.15.0, 2.13.0 (or later in the same release line).
- Upgrade dash-html-components to 2.0.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-21485. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-21485.md
Affected: dash-core-components < 2.13.0; dash-html-components < 2.0.0; dash-core-components < 2.0.0; dash < 2.15.0; dash-html-components < 2.0.16
Fixed in: 2.13.0, 2.0.0, 2.15.0, 2.0.16

Steps:
1. Search this machine and project for dash-core-components (npm), dash-html-components (PyPI), dash-core-components (PyPI), dash (PyPI), dash-html-components (npm), dash-core-components: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-21485 being exploited?

There is no confirmed exploitation: CVE-2024-21485 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.85% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-21485?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-21485?

dash-core-components \< 2.13.0; dash-html-components \< 2.0.0; dash-core-components \< 2.0.0; dash \< 2.15.0; dash-html-components \< 2.0.16.

### Is there a fix for CVE-2024-21485?

Yes. Fixed in 2.13.0, 2.0.0, 2.15.0, 2.0.16. Upgrade dash-core-components to 2.13.0 or later. Upgrade dash-html-components to 2.0.0 or later. Upgrade dash-core-components to 2.0.0 or later. Upgrade dash to one of 2.15.0, 2.13.0 (or later in the same release line). Upgrade dash-html-components to 2.0.16 or later.

### How do I check if I'm affected by CVE-2024-21485?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-21485>
- vendor: <https://github.com/advisories/GHSA-547x-748v-vp6p>
- patch: <https://github.com/plotly/dash/pull/2732>
- patch: <https://github.com/plotly/dash/commit/9920073c9a8619ae8f90fcec1924f2f3a4332a8c>
- exploit: <https://security.snyk.io/vuln/SNYK-JS-DASHCORECOMPONENTS-6183084>
- exploit: <https://security.snyk.io/vuln/SNYK-PYTHON-DASHCORECOMPONENTS-6226334>
- exploit: <https://security.snyk.io/vuln/SNYK-PYTHON-DASH-6226335>
- exploit: <https://security.snyk.io/vuln/SNYK-PYTHON-DASHHTMLCOMPONENTS-6226336>
- exploit: <https://security.snyk.io/vuln/SNYK-JS-DASHHTMLCOMPONENTS-6226337>
- exploit: <https://github.com/plotly/dash/issues/2729>
- other: <https://github.com/plotly/dash/releases/tag/v2.15.0>
- other: <https://github.com/plotly/dash>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/dash-core-components/PYSEC-2026-219.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/dash-html-components/PYSEC-2026-220.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/dash/PYSEC-2024-35.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-21485>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-547x-748v-vp6p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2024-35> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-219> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-220> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-21485> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-21485>
