Vulnerabilities in pkg:pypi/dash

PACKAGE
Advisory Identifier: GHSA-547x-748v-vp6p
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/dash

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/dash. 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

CVE Identifier CVE-2024-21485
GHSA Identifier GHSA-547x-748v-vp6p
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Dash core components
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

dash-core-components fixed: 2.13.0
npm install dash-core-components@2.13.0
dash-html-components fixed: 2.0.0
pip install dash-html-components>=2.0.0
dash-core-components fixed: 2.0.0
pip install dash-core-components>=2.0.0
dash fixed: 2.15.0
pip install dash>=2.15.0
dash-html-components fixed: 2.0.16
npm install dash-html-components@2.0.16
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-21485 Affected Dash core components Versions

5 component(s)
Fixed Versions:
2.13.02.0.02.15.02.0.16
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

NVD — CVE-2024-21485 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-21485
Dash core components Source Repository REPOSITORY
https://github.com/plotly/dash/issues/2729
Dash core components Source Repository REPOSITORY
https://github.com/plotly/dash/pull/2732
Security Fix Commit FIX COMMIT
https://github.com/plotly/dash/commit/9920073c9a8619ae8f90fcec1924f2f3a4332a8c
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-547x-748v-vp6p
Dash core components Source Repository REPOSITORY
https://github.com/plotly/dash
Dash core components Release RELEASE
https://github.com/plotly/dash/releases/tag/v2.15.0
Dash core components Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/dash-core-components/PYSEC-2026-219.yaml
Dash core components Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/dash-html-components/PYSEC-2026-220.yaml
Dash core components Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/dash/PYSEC-2024-35.yaml
Dash core components Security Information SECURITY
https://security.snyk.io/vuln/SNYK-JS-DASHCORECOMPONENTS-6183084
Dash core components Security Information SECURITY
https://security.snyk.io/vuln/SNYK-JS-DASHHTMLCOMPONENTS-6226337
Dash core components Security Information SECURITY
https://security.snyk.io/vuln/SNYK-PYTHON-DASH-6226335
Dash core components Security Information SECURITY
https://security.snyk.io/vuln/SNYK-PYTHON-DASHCORECOMPONENTS-6226334
Dash core components Security Information SECURITY
https://security.snyk.io/vuln/SNYK-PYTHON-DASHHTMLCOMPONENTS-6226336

Frequently Asked Questions

What is CVE-2024-21485?
CVE-2024-21485 is a security vulnerability in Dash core components involving Dash apps vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Dash core components versions are affected?
Affected versions include releases prior to 2.13.0, 2.0.0, 2.15.0, 2.0.16 across affected packages: dash-core-components, dash-html-components, dash.
What version fixes CVE-2024-21485?
Upgrading to 2.13.0, 2.0.0, 2.15.0, 2.0.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dash-core-components affected?
Yes, dash-core-components is affected in releases prior to 2.13.0, 2.0.0. Upgrade your dependency to 2.13.0, 2.0.0 or later.
Is dash-html-components affected?
Yes, dash-html-components is affected in releases prior to 2.0.0, 2.0.16. Upgrade your dependency to 2.0.0, 2.0.16 or later.
What is the CVSS score of CVE-2024-21485?
CVE-2024-21485 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2024-21485?
CVE-2024-21485 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for CVE-2024-21485?
Run the dependency tree command: 'npm ls dash-core-components'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}