Cross-Site Scripting Vulnerability in Loofah Library by Flavorjones
CVE-2026-126209

5.3MEDIUM

Key Information:

Status
Vendor
CVE Published:
12 November 2026

What is CVE-2026-126209?

The Loofah library, utilized for manipulating and transforming HTML/XML documents, contains a vulnerability that affects versions 2.25.0 to 2.25.3. This issue arises when the Loofah::HTML5::Scrub.allowed_uri? method improperly processes semicolon-less numeric character references. Specifically, it strips whitespace and control characters before decoding these references, which exposes applications to cross-site scripting (XSS) attacks. An attacker can craft a malicious URI that gets improperly rendered in href attributes, enabling scripts to execute in the context of the user's browser. It is advisable to upgrade to version 2.25.3 or later where this vulnerability has been addressed.

Affected Version(s)

loofah >= 2.25.0, < 2.25.3

References

CVSS V4

Score:
5.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.