{"answers":{"affected":"2 open source packages ship an affected version, including enshrined/svg-sanitize.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55166 exists.","fix":"Upgrade enshrined/svg-sanitize to 0.22.0 or later.","what":"CVE-2025-55166 is a medium-severity cross-site scripting vulnerability in darylldoyle svg-sanitizer, published on 12 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-55166 and fix it if it is affected.\n\nWhat it is: CVE-2025-55166 is a medium-severity cross-site scripting vulnerability in darylldoyle svg-sanitizer, published on 12 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55166 exists.\n\nAffected packages and fixed versions:\n- enshrined/svg-sanitize (Packagist): affected all versions; fixed in 0.22.0\n- enshrined/svg-sanitize (Packagist): affected all versions; fixed in 0.22.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-55166/ (Markdown: https://insights.sbomify.com/CVE-2025-55166/index.md)","id":"CVE-2025-55166","markdown":"https://insights.sbomify.com/CVE-2025-55166/index.md","name":"CVE-2025-55166","record":{"aliases":["CLSA-2026-1787820940","GHSA-22wq-q86m-83fh"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP SVG sanitizer","requires_auth":"none","summary":"Attackers can bypass attribute sanitization in the PHP SVG sanitizer to inject malicious scripts or links, leading to XSS or open redirects.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"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 external domains. This issue has been patched in version 0.22.0.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"svg-sanitizer By-Passing Attribute Sanitization","id":"CVE-2025-55166","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"WeGIA SQL Injection via id_fichamedica at endpoint `GET/html/funcionario/dependente_remover.php`","id":"CVE-2025-55167"},"packages":[{"ecosystem":"Packagist","fixed":["0.22.0"],"introduced":["0"],"last_affected":[],"package":"enshrined/svg-sanitize","purl":null,"source":"GHSA-22wq-q86m-83fh"},{"ecosystem":"Packagist","fixed":["0.22.0"],"introduced":["0"],"last_affected":[],"package":"enshrined/svg-sanitize","purl":"pkg:composer/enshrined/svg-sanitize","source":"GHSA-22wq-q86m-83fh"}],"prev":{"headline":"Autocaliweb Exposure of Sensitive Information to an Unauthorized Actor in `config_sql.py`","id":"CVE-2025-55165"},"products":["svg-sanitizer"],"published":"2025-08-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-12","vendors":["darylldoyle"]},"summary":"Attackers can bypass attribute sanitization in the PHP SVG sanitizer to inject malicious scripts or links, leading to XSS or open redirects.","url":"https://insights.sbomify.com/CVE-2025-55166/"}