CVE-2024-21485
Plotly Dash vulnerability
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 products
Dash. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Plotly Dash runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/plotly/dash/commit/9920073c9a8619ae8f90fcec1924f2f3a4332a8c · Patch
- github.com/plotly/dash/pull/2732 · Patch
- security.snyk.io/vuln/SNYK-JS-DASHCORECOMPONENTS-6183084 · Exploit
- security.snyk.io/vuln/SNYK-JS-DASHHTMLCOMPONENTS-6226337 · Exploit
- security.snyk.io/vuln/SNYK-PYTHON-DASH-6226335 · Exploit
- security.snyk.io/vuln/SNYK-PYTHON-DASHCORECOMPONENTS-6226334 · Exploit
- security.snyk.io/vuln/SNYK-PYTHON-DASHHTMLCOMPONENTS-6226336 · Exploit
- github.com/plotly/dash/issues/2729 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-21485
- cve.org/CVERecord?id=CVE-2024-21485
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.