{"id":"CVE-2026-73490","published":"2026-08-12T20:58:12Z","modified":"2026-08-13T13:01:57Z","title":"Loofah: SVG `href` attribute bypasses local-reference restriction","vendor":"flavorjones","product":"loofah","tier":"tail","description":{"text":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.2, Loofah's HTML5 sanitizer applies its local-reference restriction only to the xlink:href attribute on SVG use and feImage elements, while browsers also accept the plain href attribute. A crafted sanitized SVG can therefore reference an arbitrary same-origin external document; use may render external SVG content containing scripts or other dangerous content, and feImage may load external images for tracking. Applications that sanitize user-supplied SVG with Loofah's default allowlist are affected. This issue is fixed in version 2.25.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00296,"percentile":0.14644,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flavorjones/loofah/pull/308","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/releases/tag/v2.25.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":2.93},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"flavorjones","affectedVersions":[{"vendor":"flavorjones","product":"loofah","versions":["< 2.25.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-13T13:01:37.604672Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"loofah","vulnerableRanges":["<2.25.2"],"patched":["2.25.2"],"from":["GHSA-9wjq-cp2p-hrgf"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-57626","exploited":false,"provenance":"source"}}