VYPR

Svg Sanitizer

by Dar

Source repositories

CVEs (13)

  • CVE-2026-121444HigNov 3, 2026
    risk 0.42cvss 7.5epss 0.00

    svg-sanitizer from 0.11.0 before 1.1.0 contains an algorithmic complexity denial of service vulnerability in hasInfiniteLoop() and countUse() of the use reference-graph analysis. Attackers can upload a small layered SVG with 15 levels of fanned-out use elements, forcing…

  • CVE-2026-117540HigOct 27, 2026
    risk 0.42cvss 7.5epss 0.00

    svg-sanitizer from 0.5.3 before 1.1.0 contains a denial of service vulnerability in Sanitizer::sanitize() that repeatedly rescans the whole input while stripping PHP tags. Unauthenticated attackers can upload SVGs with many overlapping PHP tag openers and closers, forcing…

  • CVE-2026-107381MedOct 14, 2026
    risk 0.35cvss 6.5epss 0.00

    svg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, Resolver::processReferences() in src/ElementReference/Resolver.php builds the SVG reference graph with a case-sensitive href attribute predicate before cleanHrefAttributes() normalizes mixed-case names. An attacker…

  • CVE-2026-107379MedOct 8, 2026
    risk 0.35cvss 6.5epss 0.01

    savg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, svg-sanitizer allows a crafted SVG DTD with a #FIXED attribute default to make cleanAttributesOnWhitelist() perform a double DOMElement::removeAttribute() call on the same attribute name in src/Sanitizer.php. The first…

  • CVE-2026-121447MedNov 3, 2026
    risk 0.33cvss 6.1epss 0.00

    svg-sanitizer before 1.1.0 contains a cross-site scripting vulnerability that allows attackers to bypass sanitization by placing javascript: URLs in the animateTransform values attribute. Attackers can upload crafted SVG files whose animateTransform targets the href attribute,…

  • CVE-2022-23638MedFeb 14, 2022
    risk 0.33cvss 6.2epss 0.01

    svg-sanitizer is a SVG/XML sanitizer written in PHP. A cross-site scripting vulnerability impacts all users of the `svg-sanitizer` library prior to version 0.15.0. This issue is fixed in version 0.15.0. There is currently no workaround available.

  • CVE-2026-121445MedNov 3, 2026
    risk 0.31cvss 5.9epss 0.00

    darylldoyle svg-sanitizer from 1.0.0 before 1.1.0 contains a regular expression denial of service vulnerability in the image-set pattern of stripRemoteCssTokens() when removeRemoteReferences is enabled. Attackers can submit SVGs with many unclosed image-set tokens to exhaust…

  • CVE-2026-107380MedOct 8, 2026
    risk 0.28cvss 5.4epss 0.00

    savg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, svg-sanitizer's isHrefSafeValue() validates an SVG href after XML DTD entity expansion, but saveXML() serializes the original entity reference after removing the DTD declaration. A crafted entity such as Tab can appear…

  • CVE-2026-121443MedNov 3, 2026
    risk 0.27cvss 5.3epss 0.00

    svg-sanitizer from 1.1.0 before 1.1.1 contains a denial of service vulnerability that allows remote attackers to crash requests by submitting SVG input ending inside an unclosed tag. Attackers can upload truncated input like a single '<' to trigger an uncaught ValueError from…

  • CVE-2026-117541MedOct 27, 2026
    risk 0.27cvss 5.3epss 0.00

    svg-sanitizer from 0.11.0 before 1.1.0 contains an uncaught exception vulnerability that allows attackers to crash callers by submitting well-formed XML without a top-level svg root. Attackers can supply documents with a non-svg root or nested svg element, causing…

  • CVE-2025-55166MedAug 12, 2025
    risk 0.26cvss —epss 0.01

    savg-sanitizer is a PHP SVG/XML sanitizer. Prior to version 0.22.0, the sanitization logic in the cleanXlinkHrefs method only searches for lower-case attribute name, which allows to by-pass the isHrefSafeValue check. As a result this allows cross-site scripting or linking to…

  • CVE-2026-121446MedNov 3, 2026
    risk 0.21cvss 4.3epss 0.00

    svg-sanitizer from 0.5.0 before 1.1.0 contains an incomplete filtering vulnerability that allows attackers to bypass remote URL removal by using CSS escape sequences inside url() in SVG presentation attributes. Attackers can supply SVG files with attributes like fill containing…

  • CVE-2026-117539LowOct 27, 2026
    risk 0.16cvss 3.5epss 0.00

    darylldoyle svg-sanitizer before 1.0.0 contains CSS injection and remote reference bypass vulnerabilities that allow attackers to embed external resources by uploading crafted SVG files. Attackers can use unsanitized style content, unquoted url() values, or image href attributes…