{"vuln_id":"CVE-2026-126205","aliases":["GHSA-mf2j-8f84-cc9q"],"description":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, the Loofah HTML5 sanitizer checks href and xlink:href on elements in SVG_ALLOW_LOCAL_HREF with a regular expression whose line anchor and newline-matching whitespace cause an all-whitespace value to be rescanned from every line start. An attacker can submit an SVG reference element with a long multiline-whitespace attribute and consume CPU quadratically during sanitization. CRuby 3.1 and earlier and JRuby are affected, while CRuby 3.2 and later uses linear-time regular-expression matching. The default safelist reaches the vulnerable check without a configuration change. This issue is fixed in version 2.25.3.","published_at":"2026-11-12T21:17:21.487000Z","modified_at":"2026-11-23T06:00:08.736044Z","first_seen_at":"2026-11-21T19:15:48.266897Z","severity":"medium","severity_source":"nvd","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","cwe":["CWE-400","CWE-1333"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00405,"epss_percentile":0.35505,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-126205"},"matched_alias":null,"items":[{"id":15490,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-126205: Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, the Loofah HTML5 san…","summary":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, the Loofah HTML5 sanitizer checks href and xlink:href on elements in SVG_ALLOW_LOCAL_HREF with a regular expression whose line anchor and newline-matching whitespace cause an all-whitespace value to be rescanned from every line start. An attacker can submit an SVG reference element with a long multiline-whitespace attribute and consume CPU quadratically during sanitization. CRuby 3.1 and earlier and JRuby are affected, while CRuby 3.2 and later uses linear-time regular-expression matching. The default safelist reaches the vulnerable check without a configuration change. 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-126205","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-126205","published_at":"2026-11-12T21:17:21.487000Z","updated_at":"2026-11-23T06:00:08.736044Z","fetched_at":"2026-11-23T09:06:04.177898Z","severity":"medium","cvss_score":5.3,"epss":0.00405,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:ruby-loofah","vuln_id":"CVE-2026-126205","vuln_ids":["CVE-2026-126205","DEBIAN-CVE-2026-126205","GHSA-MF2J-8F84-CC9Q"],"tags":["osv","debian","fix-available"],"cluster_id":5588,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/15490","html":"https://vulnwatch.ve1ve2.com/item/15490"}},{"id":5266,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-126205: Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, the Loofah HTML5 san…","summary":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, the Loofah HTML5 sanitizer checks href and xlink:href on elements in SVG_ALLOW_LOCAL_HREF with a regular expression whose line anchor and newline-matching whitespace cause an all-whitespace value to be rescanned from every line start. An attacker can submit an SVG reference element with a long multiline-whitespace attribute and consume CPU quadratically during sanitization. CRuby 3.1 and earlier and JRuby are affected, while CRuby 3.2 and later uses linear-time regular-expression matching. The default safelist reaches the vulnerable check without a configuration change. This issue is fixed in version 2.25.3.\n\nReferences:\nhttps://github.com/flavorjones/loofah/commit/2f31e7fae36036c9882d3d0fae720e1014c57cd1\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-mf2j-8f84-cc9q","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126205","published_at":"2026-11-12T21:17:21.487000Z","updated_at":"2026-11-16T20:18:59.413000Z","fetched_at":"2026-11-21T19:15:31.480792Z","severity":"medium","cvss_score":5.3,"epss":0.00405,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-126205","vuln_ids":["CVE-2026-126205","GHSA-MF2J-8F84-CC9Q"],"tags":["CWE-400","CWE-1333"],"cluster_id":5588,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/5266","html":"https://vulnwatch.ve1ve2.com/item/5266"}}]}