PyPI: dash-html-components

CVE-2024-21485

Safety vulnerability ID: SFTY-20240202-75714

Safety legacy ID: pyup.io-71639

Dash-html-components affected versions 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.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Dash apps vulnerable to Cross-site Scripting

Advisory

Dash-html-components affected versions 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 Package

Affecting dash-html-components package, versions<2.0.0

Also affects

---

How to Fix

Upgradedash-html-componentsto2.0.0or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more