npm package report

Is dompurify safe?

dompurify (npm) has 33 known vulnerabilities, the worst rated CRITICAL. No single fixed version is recorded that clears every advisory, so check each one below. No malicious-package signal is recorded.

// reach

0 direct dependencies

none carry a known advisory

    15 packages depend on it

    an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai model usage

    Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


    cvss
    9.0
    critical

    severity band, no base score published

    epss
    not scored

    chance of exploitation in 30 days

    xyz score
    4.9
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-cg2g-xh64-v4q7, the advisory selected below

    // 33 advisories

    GHSA-cg2g-xh64-v4q7

    CRITICALGitHub rating

    When DOMPurify is configured with SAFEFORTEMPLATES: true together with a DOM-returning mode (RETURNDOM: true, RETURNDOMFRAGMENT: true, or INPLACE: true)…

    Full advisory text at GitHub advisory.

    // questions
    Is dompurify safe to install?

    CyberXYZ does not call a package safe in absolute terms. It records 33 known vulnerabilities for dompurify (npm), the worst rated CRITICAL, and no malicious-package signal. Whether it is acceptable depends on the version you run.

    Does dompurify have known vulnerabilities?

    Yes. CyberXYZ records 33 known vulnerabilities for dompurify (npm), the worst rated CRITICAL. These include GHSA-cg2g-xh64-v4q7, GHSA-p3vf-v8qc-cwcr, GHSA-mjjq-c88q-qhr6, GHSA-mrv2-3pqr-j5jr, GHSA-87xg-pxx2-7hvx.

    How do I check dompurify before installing?

    Search dompurify in CyberXYZ Check at https://cyberxyz.io/check?q=dompurify. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


    Checked 2026-11-14 at 06:46 UTC. The most recent advisory here was published 2026-10-22. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.