{"id":"CVE-2026-73648","published":"2026-08-13T18:00:21Z","modified":"2026-08-13T18:35:10Z","title":"rails-html-sanitizer: Possible XSS vulnerability with certain configurations","vendor":"rails","product":"rails-html-sanitizer","tier":"tail","description":{"text":"rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00547,"percentile":0.46768,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails-html-sanitizer/pull/223","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":9.35},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"rails-html-sanitizer","versions":[">= 1.0.3, < 1.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-13T18:34:06.330753Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rails-html-sanitizer","vulnerableRanges":[">=1.0.3, <1.7.1"],"patched":["1.7.1"],"from":["GHSA-cj75-f6xr-r4g7"],"provenance":"source"}],"summary":{"text":"rails-html-sanitizer's Rails::HTML::PermitScrubber, in versions 1.0.3 through 1.7.1, restricted SVG reference elements to those using xlink:href but failed to restrict the plain href attribute that browsers also accept, which lets external references through. An attacker could exploit this only in applications that configure non-default allowed tags including SVG use or feImage elements, by supplying content that leads to a same-origin external SVG executing scripts in the sanitized document's context (requiring user interaction) or an external image load for tracking.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:50Z"},"euvd":{"id":"EUVD-2026-58191","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rails-html-sanitizer-cve-2015-7579","parents":[{"from":"CVE-2015-7579","to":"CVE-2026-73648","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rails/html/scrubbers.rb"],"commits":["https://github.com/rails/rails-html-sanitizer/commit/49dfc1584c5b8e35a4ffabf8356ba3df025e8d3f","https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586"],"basis":"shared function","functions":["scrub_attribute"]}]},{"from":"CVE-2018-3741","to":"CVE-2026-73648","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["rails-html-sanitizer.gemspec"],"commits":["https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae","https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586"],"basis":"shared function","functions":["scrub_attribute"]}]},{"from":"CVE-2022-23517","to":"CVE-2026-73648","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rails/html/scrubbers.rb"],"commits":["https://github.com/rails/rails-html-sanitizer/commit/56c61c0cebd1e493e8ad7bca2a0191609a4a6979","https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586"],"basis":"shared function","functions":["scrub_attribute"]}]}],"packageHistory":[{"cve":"CVE-2024-53987","published":"2024-12-02","fixed":"1.6.1","kev":false},{"cve":"CVE-2024-53988","published":"2024-12-02","fixed":"1.6.1","kev":false},{"cve":"CVE-2024-53989","published":"2024-12-02","fixed":"1.6.1","kev":false},{"cve":"CVE-2026-73648","published":"2026-08-13","fixed":"1.7.1","kev":false},{"cve":"CVE-2026-128068","published":"2026-11-13","fixed":"1.7.2","kev":false,"link":{"from":"CVE-2026-73648","to":"CVE-2026-128068","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails-html-sanitizer","fromFixed":"1.7.1","toFixed":"1.7.2","daysApart":92},{"kind":"same-code","provenance":"machine","files":["rails-html-sanitizer.gemspec"],"commits":["https://github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865","https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586"],"basis":"shared file"}]}},{"cve":"CVE-2026-128069","published":"2026-11-13","fixed":"1.7.2","kev":false,"link":{"from":"CVE-2026-73648","to":"CVE-2026-128069","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails-html-sanitizer","fromFixed":"1.7.1","toFixed":"1.7.2","daysApart":92}]}}],"package":"RubyGems:rails-html-sanitizer"}}