Skip to content

Dash apps vulnerable to Cross-site Scripting

Moderate severity GitHub Reviewed Published Feb 2, 2024 to the GitHub Advisory Database • Updated Mar 6, 2024

Package

pip dash (pip)

Affected versions

< 2.15.0

Patched versions

2.15.0
npm dash-core-components (npm)
< 2.13.0
2.13.0
pip dash-core-components (pip)
< 2.0.0
2.0.0
npm dash-html-components (npm)
< 2.0.16
2.0.16
pip dash-html-components (pip)
< 2.0.0
2.0.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.

References

Published by the National Vulnerability Database Feb 2, 2024
Published to the GitHub Advisory Database Feb 2, 2024
Reviewed Feb 2, 2024
Last updated Mar 6, 2024

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N

Weaknesses

CVE ID

CVE-2024-21485

GHSA ID

GHSA-547x-748v-vp6p

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.