# CVE-2026-126206: Loofah allowed_uri? treats data:text&sol;html as safe text/plain

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-12T20:51:36.537Z
- Modified: 2026-11-13T23:17:15.420Z
- Also known as: GHSA-jcff-cj73-4w4f
- Weaknesses: CWE-79, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flavorjones loofah: = 2.25.2
- loofah (RubyGems): from 2.25.2 before 2.25.3

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/flavorjones/loofah/security/advisories/GHSA-jcff-cj73-4w4f> (web)
- <https://github.com/flavorjones/loofah/pull/324> (web)
- <https://github.com/flavorjones/loofah/commit/ad92002966053309f83b550861e2ef04bc714744> (web)
- <https://github.com/flavorjones/loofah/releases/tag/v2.25.3> (web)
- <https://github.com/flavorjones/loofah> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-jcff-cj73-4w4f.yml> (web)

## Sources

- CVE List: [CVE-2026-126206](https://www.cve.org/CVERecord?id=CVE-2026-126206), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-jcff-cj73-4w4f](https://github.com/advisories/GHSA-jcff-cj73-4w4f), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126206](https://nvd.nist.gov/vuln/detail/CVE-2026-126206), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126206 · Whole record: https://cve.day/CVE-2026-126206.json · Rebuilt by cve.day 2026-11-25T22:59:50.564Z
