{"id":"CVE-2026-126206","published":"2026-11-12T20:51:36Z","modified":"2026-11-13T22:32:32Z","title":"Loofah allowed_uri? treats data:text&sol;html as safe text/plain","vendor":"flavorjones","product":"loofah","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00417,"percentile":0.36849,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-jcff-cj73-4w4f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flavorjones/loofah/pull/324","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/commit/ad92002966053309f83b550861e2ef04bc714744","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/releases/tag/v2.25.3","tags":["x_refsource_MISC"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":7.37},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"flavorjones","affectedVersions":[{"vendor":"flavorjones","product":"loofah","versions":["= 2.25.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-13T16:33:59.076823Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"loofah","vulnerableRanges":[">=2.25.2, <2.25.3"],"patched":["2.25.3"],"from":["GHSA-jcff-cj73-4w4f"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-124712","exploited":false,"provenance":"source"}}