Vulnerabilities in pkg:pypi/dash-html-components
PACKAGECVE-2024-21485 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Dash core components libraries in the npm ecosystem. The issue involves dash apps vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.13.0, 2.0.0, 2.15.0, 2.0.16.
pkg:pypi/dash-html-components
Vulnerability advisories affecting package pkg:pypi/dash-html-components. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-547x-748v-vp6p | CVE-2024-21485 | MODERATE | Dash apps vulnerable to Cross-site Scripting |
CVE-2024-21485 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N).
How to Fix CVE-2024-21485
To remediate this vulnerability, upgrade all affected Dash core components dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install dash-core-components@2.13.0
pip install dash-html-components>=2.0.0
pip install dash-core-components>=2.0.0
pip install dash>=2.15.0
npm install dash-html-components@2.0.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls dash-core-components
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-21485, inspect your project dependencies using npm:
npm ls dash-core-components
Analyze the terminal output to locate any version of Dash core components in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.13.0), your application is affected.
Note: The npm ls dash-core-components command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Dash core components, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-21485 Affected Dash core components Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dash-core-components
|
npm |
< 2.13.0
|
2.13.0
|
|
dash-html-components
|
PyPI |
< 2.0.0
|
2.0.0
|
|
dash-core-components
|
PyPI |
< 2.0.0
|
2.0.0
|
|
dash
|
PyPI |
< 2.15.0
|
2.15.0
|
|
dash-html-components
|
npm |
< 2.0.16
|
2.0.16
|
References
Frequently Asked Questions
What is CVE-2024-21485?
Which Dash core components versions are affected?
What version fixes CVE-2024-21485?
Is dash-core-components affected?
Is dash-html-components affected?
What is the CVSS score of CVE-2024-21485?
What CWE is associated with CVE-2024-21485?
How can I check npm dependencies for CVE-2024-21485?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-547x-748v-vp6p",
"modified" : "2026-07-20T13:37:42Z",
"published" : "2024-02-02T06:30:31Z",
"aliases" : [ "CVE-2024-21485" ],
"summary" : "Dash apps vulnerable to Cross-site Scripting",
"details" : "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. \n\n**Note:** \n\nThis is only exploitable in Dash apps that include some mechanism to store user input to be reloaded by a different user.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "dash-core-components"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.13.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "dash-html-components"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "dash-core-components"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "dash"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.15.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dash-html-components"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.16"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21485"
}, {
"type" : "WEB",
"url" : "https://github.com/plotly/dash/issues/2729"
}, {
"type" : "WEB",
"url" : "https://github.com/plotly/dash/pull/2732"
}, {
"type" : "WEB",
"url" : "https://github.com/plotly/dash/commit/9920073c9a8619ae8f90fcec1924f2f3a4332a8c"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-547x-748v-vp6p"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/plotly/dash"
}, {
"type" : "WEB",
"url" : "https://github.com/plotly/dash/releases/tag/v2.15.0"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/dash-core-components/PYSEC-2026-219.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/dash-html-components/PYSEC-2026-220.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/dash/PYSEC-2024-35.yaml"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-DASHCORECOMPONENTS-6183084"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-DASHHTMLCOMPONENTS-6226337"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-PYTHON-DASH-6226335"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-PYTHON-DASHCORECOMPONENTS-6226334"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-PYTHON-DASHHTMLCOMPONENTS-6226336"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-02T18:10:51Z",
"nvd_published_at" : "2024-02-02T05:15:09Z"
}
}