{"vuln_id":"CVE-2026-126209","aliases":["GHSA-p9wj-w8xq-vjx6"],"description":"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.","published_at":"2026-11-12T21:17:22.210000Z","modified_at":"2026-11-23T06:00:09.829402Z","first_seen_at":"2026-11-21T19:15:48.268546Z","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.00414,"epss_percentile":0.36473,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-126209"},"matched_alias":null,"items":[{"id":15485,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-126209: 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::HTM…","summary":"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.\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-126209","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-126209","published_at":"2026-11-12T21:17:22.210000Z","updated_at":"2026-11-23T06:00:09.829402Z","fetched_at":"2026-11-23T09:06:04.177894Z","severity":"medium","cvss_score":5.3,"epss":0.00414,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:ruby-loofah","vuln_id":"CVE-2026-126209","vuln_ids":["CVE-2026-126209","DEBIAN-CVE-2026-126209","GHSA-P9WJ-W8XQ-VJX6"],"tags":["osv","debian","fix-available"],"cluster_id":5590,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/15485","html":"https://vulnwatch.ve1ve2.com/item/15485"}},{"id":5267,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-126209: 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::HTM…","summary":"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.\n\nReferences:\nhttps://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317\nhttps://github.com/flavorjones/loofah/pull/324\nhttps://github.com/flavorjones/loofah/releases/tag/v2.25.3\nhttps://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126209","published_at":"2026-11-12T21:17:22.210000Z","updated_at":"2026-11-16T20:18:59.543000Z","fetched_at":"2026-11-21T19:15:31.480793Z","severity":"medium","cvss_score":5.3,"epss":0.00414,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-126209","vuln_ids":["CVE-2026-126209","GHSA-P9WJ-W8XQ-VJX6"],"tags":["CWE-79","CWE-184"],"cluster_id":5590,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/5267","html":"https://vulnwatch.ve1ve2.com/item/5267"}}]}