{"answers":{"affected":"2 open source packages ship an affected version, including rails-html-sanitizer.","exploited":"There is no known exploitation of CVE-2026-73648 in the wild and no public exploit code.","fix":"Upgrade rails-html-sanitizer to 1.7.1 or later.","what":"CVE-2026-73648 is a medium-severity cross-site scripting vulnerability in rails-html-sanitizer, published on 13 Aug 2026. 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-2026-73648 and fix it if it is affected.\n\nWhat it is: CVE-2026-73648 is a medium-severity cross-site scripting vulnerability in rails-html-sanitizer, published on 13 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-73648 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rails-html-sanitizer (RubyGems): affected from 1.0.3; fixed in 1.7.1\n- rails-html-sanitizer (RubyGems): affected from 1.0.3; fixed in 1.7.1\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-2026-73648/ (Markdown: https://insights.sbomify.com/CVE-2026-73648/index.md)","id":"CVE-2026-73648","markdown":"https://insights.sbomify.com/CVE-2026-73648/index.md","name":"CVE-2026-73648","record":{"aliases":["DEBIAN-CVE-2026-73648","GHSA-cj75-f6xr-r4g7","SUSE-SU-2026:4445-1","UBUNTU-CVE-2026-73648"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby HTML sanitizer","requires_auth":"none","summary":"Attackers can execute scripts or track users via SVG elements in Rails applications using non-default allowed tags.","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:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["RubyGems","SUSE:Linux Enterprise High Availability Extension 15 SP4","SUSE:Linux Enterprise High Availability Extension 15 SP5","SUSE:Linux Enterprise High Availability Extension 15 SP6","SUSE:Linux Enterprise High Availability Extension 15 SP7"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"rails-html-sanitizer: Possible XSS vulnerability with certain configurations","id":"CVE-2026-73648","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":6,"n_references":4,"next":{"headline":"Velocity.js: Remote Code Execution via property-read to Function constructor (bypass of CVE-2026-44966 fix)","id":"CVE-2026-73649"},"packages":[{"ecosystem":"RubyGems","fixed":["1.7.1"],"introduced":["1.0.3"],"last_affected":[],"package":"rails-html-sanitizer","purl":null,"source":"GHSA-cj75-f6xr-r4g7"},{"ecosystem":"RubyGems","fixed":["1.7.1"],"introduced":["1.0.3"],"last_affected":[],"package":"rails-html-sanitizer","purl":"pkg:gem/rails-html-sanitizer","source":"GHSA-cj75-f6xr-r4g7"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP4","fixed":["1.0.4-150000.4.9.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-rails-html-sanitizer","purl":"pkg:rpm/suse/rubygem-rails-html-sanitizer\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP4","source":"SUSE-SU-2026:4445-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP5","fixed":["1.0.4-150000.4.9.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-rails-html-sanitizer","purl":"pkg:rpm/suse/rubygem-rails-html-sanitizer\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP5","source":"SUSE-SU-2026:4445-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP6","fixed":["1.0.4-150000.4.9.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-rails-html-sanitizer","purl":"pkg:rpm/suse/rubygem-rails-html-sanitizer\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP6","source":"SUSE-SU-2026:4445-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP7","fixed":["1.0.4-150000.4.9.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-rails-html-sanitizer","purl":"pkg:rpm/suse/rubygem-rails-html-sanitizer\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP7","source":"SUSE-SU-2026:4445-1"}],"prev":{"headline":"Quasar Framework: Prototype pollution in Quasar extend() utility","id":"CVE-2026-73647"},"products":["rails-html-sanitizer"],"published":"2026-08-13","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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["rails"]},"summary":"Attackers can execute scripts or track users via SVG elements in Rails applications using non-default allowed tags.","url":"https://insights.sbomify.com/CVE-2026-73648/"}