{"id":"CVE-2026-73490","state":"PUBLISHED","title":"Loofah: SVG `href` attribute bypasses local-reference restriction","description":"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.","publishedAt":"2026-08-12T20:58:12.219Z","updatedAt":"2026-08-13T13:01:57.912Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["flavorjones loofah"],"affected":[{"vendor":"flavorjones","product":"loofah","versions":[{"version":"< 2.25.2","status":"affected"}]}],"references":["https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf","https://github.com/flavorjones/loofah/pull/308","https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9","https://github.com/flavorjones/loofah/releases/tag/v2.25.2"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/73xxx/CVE-2026-73490.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-73490","state":"PUBLISHED","datePublished":"2026-08-12T20:58:12.219Z","dateUpdated":"2026-08-13T13:01:57.912Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-12T19:00:33.735Z"},"containers":{"cna":{"title":"Loofah: SVG `href` attribute bypasses local-reference restriction","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"flavorjones","product":"loofah","versions":[{"version":"< 2.25.2","status":"affected"}]}],"references":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf","name":"https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flavorjones/loofah/pull/308","name":"https://github.com/flavorjones/loofah/pull/308","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9","name":"https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/releases/tag/v2.25.2","name":"https://github.com/flavorjones/loofah/releases/tag/v2.25.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-12T20:58:12.219Z"},"source":{"advisory":"GHSA-9wjq-cp2p-hrgf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-13T13:01:37.604672Z","id":"CVE-2026-73490","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-13T13:01:57.912Z"}}]}}}