{"vuln_id":"CVE-2026-126206","aliases":[],"description":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. In 2.25.2, Loofah::HTML5::Scrub.allowed_uri? treats a data URI mediatype containing the HTML5 named solidus reference &sol; as malformed and falls back to the allowed text/plain, while a browser decodes the reference and interprets the same value as text/html. An application that validates a user-controlled URL with this helper and renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting. Rails::HTML::Sanitizer.allowed_uri? re-exports the affected helper. Loofah's default sanitize() path is not affected because Nokogiri decodes the entity before URI validation. This issue is fixed in version 2.25.3.","published_at":"2026-11-12T21:17:21.670000Z","modified_at":"2026-11-23T06:00:08.647753Z","first_seen_at":"2026-11-23T09:06:04.296727Z","severity":"medium","severity_source":"nvd","cvss_score":5.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-79","CWE-184"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00417,"epss_percentile":0.36748,"nvd_status":"Awaiting Analysis","enriched_at":"2026-11-23T09:18:26.024733Z","links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-126206"},"matched_alias":null,"items":[{"id":15492,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-126206: Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. In 2.25.2, Loofah::HTML5::Scrub.allow…","summary":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. In 2.25.2, Loofah::HTML5::Scrub.allowed_uri? treats a data URI mediatype containing the HTML5 named solidus reference &sol; as malformed and falls back to the allowed text/plain, while a browser decodes the reference and interprets the same value as text/html. An application that validates a user-controlled URL with this helper and renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting. Rails::HTML::Sanitizer.allowed_uri? re-exports the affected helper. Loofah's default sanitize() path is not affected because Nokogiri decodes the entity before URI validation. This issue is fixed in version 2.25.3.\n\nAffected: Debian:12:ruby-loofah, Debian:13:ruby-loofah, Debian:14:ruby-loofah\n\nFixed in: 2.25.3-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-126206","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-126206","published_at":"2026-11-12T21:17:21.670000Z","updated_at":"2026-11-23T06:00:08.647753Z","fetched_at":"2026-11-23T09:06:04.177900Z","severity":"medium","cvss_score":5.3,"epss":0.00417,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:ruby-loofah","vuln_id":"CVE-2026-126206","vuln_ids":["CVE-2026-126206","DEBIAN-CVE-2026-126206"],"tags":["osv","debian","fix-available"],"cluster_id":14004,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/15492","html":"https://vulnwatch.ve1ve2.com/item/15492"}}]}