{"id":"DEBIAN-CVE-2026-126209","details":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.25.0 until 2.25.3, Loofah::HTML5::Scrub.allowed_uri? strips whitespace and control characters before decoding a semicolon-less numeric character reference, changing where the reference ends and hiding a javascript: or vbscript: scheme that a browser reconstructs. The bypass applies to encoded colons and encoded scheme letters when a stripped character terminates the numeric reference. An application that renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting, and Rails::HTML::Sanitizer.allowed_uri? re-exports the affected helper. Loofah's default sanitize() path is not affected because Nokogiri decodes entities before URI evaluation. This issue is fixed in version 2.25.3.","modified":"2026-11-17T09:47:33.475046162Z","published":"2026-11-12T21:17:22.210Z","upstream":["CVE-2026-126209"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-126209"}],"affected":[{"package":{"name":"ruby-loofah","ecosystem":"Debian:12","purl":"pkg:deb/debian/ruby-loofah?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.19.1-1","2.20.0-1","2.21.3-1","2.21.4-1","2.22.0-1","2.24.0-1","2.24.1-1","2.25.0-1","2.25.1-1","2.25.1-2","2.25.2-1","2.25.3-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-126209.json"}},{"package":{"name":"ruby-loofah","ecosystem":"Debian:13","purl":"pkg:deb/debian/ruby-loofah?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.24.0-1","2.24.1-1","2.25.0-1","2.25.1-1","2.25.1-2","2.25.2-1","2.25.3-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-126209.json"}},{"package":{"name":"ruby-loofah","ecosystem":"Debian:14","purl":"pkg:deb/debian/ruby-loofah?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.24.0-1","2.24.1-1","2.25.0-1","2.25.1-1","2.25.1-2","2.25.2-1","2.25.3-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-126209.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}