CVE-2026-126205
Published:November 12, 2026
Updated:November 13, 2026
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.
Affected Packages
https://github.com/flavorjones/loofah.git (GITHUB):
Affected version(s) >=v0.2.0 <v2.25.3 || >=v1.0.0.beta.1 <v2.25.3 || >=v2.0.0 <v2.25.3Fix Suggestion:
Update to version v2.25.3loofah (RUBY):
Affected version(s) >=0.2.0 <2.25.3 || >=1.0.0.beta.1 <2.25.3 || >=2.0.0 <2.25.3Fix Suggestion:
Update to version 2.25.3Related ResourcesĀ (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
EPSS
Base Score:
0.40