Skip to content
Heist/ feed
Back to feed
Critical

node-dompurify — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-47875

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.

Products
node-dompurify
Affected versions
2.3.0+dfsg-2, 2.3.3+dfsg-1, 2.4.1+dfsg+~2.4.0-1, 3.0.9+dfsg+~3.0.5-1, 3.1.7+dfsg+~3.0.5-1, 3.1.7+dfsg+~3.0.5-2, 3.3.3+dfsg-1, 3.4.12+dfsg-1, 3.4.13+dfsg-1, 3.4.13+dfsg-2, 3.4.2+dfsg-1, 3.4.5+dfsg-1
Fixed versions
Not specified
CVEs
CVE-2024-47875
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:23 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-47875

core-osv · Original source

Published 11 Oct 2024, 15:15 UTC

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.

osv:UBUNTU-CVE-2024-47875

node-dompurify

Fixed versions: Not specified

node-dompurify

Fixed versions: Not specified

node-dompurify

Fixed versions: Not specified

node-dompurify

Fixed versions: Not specified

node-dompurify

Fixed versions: Not specified

Complete source record
{
  "id": "7f836e8ab18860bc5e154591a4517765bf1ed52cd890fae4744a9436a6afdea5",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-47875",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-47875",
    "summary": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.",
    "evidence": "osv:UBUNTU-CVE-2024-47875",
    "products": [
      {
        "name": {
          "value": "node-dompurify",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.3.3+dfsg-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-dompurify",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.1+dfsg+~2.4.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.0.9+dfsg+~3.0.5-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-dompurify",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.7+dfsg+~3.0.5-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.1.7+dfsg+~3.0.5-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-dompurify",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.3+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.2+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.5+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.12+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.13+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.4.13+dfsg-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-dompurify",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.7+dfsg+~3.0.5-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.3.3+dfsg-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2024-47875",
      "aliases": [
        "UBUNTU-CVE-2024-47875"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-dompurify",
            "purl": "pkg:deb/ubuntu/node-dompurify?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.3.0+dfsg-2",
            "2.3.3+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-dompurify",
                "binary_version": "2.3.3+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-dompurify",
            "purl": "pkg:deb/ubuntu/node-dompurify?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.4.1+dfsg+~2.4.0-1",
            "3.0.9+dfsg+~3.0.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-dompurify",
                "binary_version": "3.0.9+dfsg+~3.0.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-dompurify",
            "purl": "pkg:deb/ubuntu/node-dompurify?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.1.7+dfsg+~3.0.5-1",
            "3.1.7+dfsg+~3.0.5-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-dompurify",
                "binary_version": "3.1.7+dfsg+~3.0.5-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-dompurify",
            "purl": "pkg:deb/ubuntu/node-dompurify?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.3.3+dfsg-1",
            "3.4.2+dfsg-1",
            "3.4.5+dfsg-1",
            "3.4.12+dfsg-1",
            "3.4.13+dfsg-1",
            "3.4.13+dfsg-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-dompurify",
                "binary_version": "3.4.13+dfsg-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-dompurify",
            "purl": "pkg:deb/ubuntu/node-dompurify?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.1.7+dfsg+~3.0.5-2",
            "3.3.3+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-dompurify",
                "binary_version": "3.3.3+dfsg-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:45.737911664Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-47875"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-47875",
        "https://www.cve.org/CVERecord?id=CVE-2024-47875",
        "https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf",
        "https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f",
        "https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a",
        "https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-47875",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356187,
  "published_at": "2024-10-11T15:15:00+00:00"
}