CVE-2026-117540

Source
https://cve.org/CVERecord?id=CVE-2026-117540
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-117540.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-117540
Aliases
  • GHSA-2v7c-jx29-jprp
Published
2026-10-27T10:59:34Z
Modified
2026-11-04T02:30:19Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop
Details

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 quadratic preg_replace passes that exhaust worker CPU for minutes.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-407"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117540.json"
}
References

Affected packages

Git / github.com/darylldoyle/svg-sanitizer

Affected ranges

Type
GIT
Repo
https://github.com/darylldoyle/svg-sanitizer
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0.5.3"
                },
                {
                    "fixed":  "1.1.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "9ba9001493f5da737759303f13bd965ebdaa778c"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "introduced":  "0.5.3"
                },
                {
                    "fixed":  "1.1.0"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

0.*
0.10.0
0.13.2
0.13.3
0.14.0
0.14.1
0.15.0
0.15.1
0.15.2
0.15.3
0.15.4
0.16.0
0.17.0
0.18.0
0.19.0
0.20.0
0.21.0
0.22.0
0.5.3
0.5.3.1
0.6.0
0.7.0
0.7.1
0.7.2
0.8.0
0.8.1
0.8.2
0.9.0
0.9.1
0.9.2
1.*
1.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-117540.json"