Vulnerability · Published Feb 2, 2024 · Assigned by snyk

CVE-2024-21485

Medium 6.5

In plain English

A medium-severity cross-site scripting in dash. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.5%top 25.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIdash2.15.0GHSA-547x-748v-vp6p
PyPIdash2.13.0, 2.15.0PYSEC-2024-35
PyPIdash-core-components2.0.0PYSEC-2026-219
PyPIdash-core-components2.0.0GHSA-547x-748v-vp6p
PyPIdash-html-components2.0.0GHSA-547x-748v-vp6p
PyPIdash-html-components2.0.0PYSEC-2026-220
npmdash-core-components2.13.0GHSA-547x-748v-vp6p
npmdash-html-components2.0.16GHSA-547x-748v-vp6p

Affected products (as reported)

VendorProductVersions
n/a dash-core-components 0 – before 2.13.0
n/a dash-core-components 0 – before 2.0.0
n/a dash 0 – before 2.15.0
n/a dash-html-components 0 – before 2.0.0
n/a dash-html-components 0 – before 2.0.16

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N/E:P

References