Is enshrined/svg-sanitize 0.4 vulnerable?

Composer · 2 releases from 0.4.0 to 0.4.1 · latest enshrined/svg-sanitize is 1.1.1 · checked 18 Nov 2026

Yes: 7 known advisories

Yes. enshrined/svg-sanitize 0.4.1, the last 0.4 release, is affected by 7 known security advisories (1 high, 6 medium), including CVE-2019-18857, CVE-2026-107380, CVE-2026-107381. Upgrade to 1.0.0 or later to fix all of them.

Upgrade with:composer require enshrined/svg-sanitize:^1.0.0

Is your project on an affected enshrined/svg-sanitize?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting enshrined/svg-sanitize 0.4.1

  • MediumCVE-2026-107380GHSA-9rjx-3jch-6vjf8 Oct 2026

    enshrined/svg-sanitize: Stored XSS via DTD Entity / HTML5 Named Character Reference Collision

    Affected
    <1.0.0
    Fixed in
    1.0.0
  • MediumCVE-2026-107381GHSA-m9xh-6747-9r6f8 Oct 2026

    svg-sanitizer: Mixed-case xlink:HrEf skips the `<use>` nesting-DoS check in Resolver::processReferences

    Affected
    <1.0.0
    Fixed in
    1.0.0
  • MediumCVE-2026-107379GHSA-v383-3rw5-q8rf8 Oct 2026

    enshrined/svg-sanitize: Denial of Service via DTD Attribute Declaration Crash

    Affected
    <1.0.0
    Fixed in
    1.0.0
  • MediumCVE-2025-55166GHSA-22wq-q86m-83fh12 Aug 2025

    svg-sanitizer Bypasses Attribute Sanitization

    Affected
    <0.22.0
    Fixed in
    0.22.0
  • MediumCVE-2022-23638GHSA-fqx8-v33p-4qcc14 Feb 2022

    Cross-site Scripting in enshrined/svg-sanitize

    Affected
    <0.15.0
    Fixed in
    0.15.0
  • MediumCVE-2019-10772GHSA-8rc5-hx3v-2jg727 Feb 2020

    Sanitizer bypass in svg-sanitizer

    Affected
    <0.13.1
    Fixed in
    0.13.1
  • HighCVE-2019-18857GHSA-gf8j-v8x5-h9qp8 Jan 2020

    XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes

    Affected
    <0.12.0
    Fixed in
    0.12.0

Every enshrined/svg-sanitize 0.4.x release

Affected: 0.4.0 to 0.4.1. Latest enshrined/svg-sanitize: 1.1.1.

VersionKnown advisories
enshrined/svg-sanitize 0.4.1CVE-2026-107380, CVE-2026-107381, CVE-2026-107379, CVE-2025-55166, CVE-2022-23638, CVE-2019-10772, CVE-2019-18857
enshrined/svg-sanitize 0.4.0CVE-2026-107380, CVE-2026-107381, CVE-2026-107379, CVE-2025-55166, CVE-2022-23638, CVE-2019-10772, CVE-2019-18857

Which of your client projects are still on enshrined/svg-sanitize 0.4?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact enshrined/svg-sanitize version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other enshrined/svg-sanitize versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Composer registry. Refreshed daily.