CVE-2024-21485: Dash apps vulnerable to Cross-site Scripting
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.64794%
CWE
Published
2/2/2024
Updated
9/16/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| dash-core-components | npm | < 2.13.0 | 2.13.0 |
| dash | pip | < 2.15.0 | 2.15.0 |
| dash-html-components | npm | < 2.0.16 | 2.0.16 |
| dash-html-components | pip | < 2.0.0 | 2.0.0 |
| dash-core-components | pip | < 2.0.0 | 2.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unsanitized href/action/src attributes in multiple components. The commit diff shows: 1) In Link.react.js, href was directly used without validation before adding @braintree/sanitize-url. 2) generate-components.js was modified to add sanitization for multiple HTML elements' attributes, indicating these were previously vulnerable. Both locations handled user-controlled URL values without proper neutralization of JavaScript URIs, enabling XSS when malicious values were stored and rendered.