CVE-2026-126203: Loofah - Cross-Site Scripting
- Cve: CVE-2026-126203
- Name: Loofah - Cross-Site Scripting
- Description: Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.21.0 until 2.25.3, Loofah's HTML5 APIs Loofah.html5_fragment, Loofah.html5_document, and the scrub_html5_* methods can emit sanitized output that a browser reparses as different markup when used with Nokogiri before 1.19.5, because those Nokogiri versions do not escape angle brackets in attribute values. MathML can place markup inside an allowed attribute so the reparsed output becomes live HTML. The :strip scrubber is affected in every browser, while :prune and :escape are affected in WebKit browsers. Loofah's HTML4 APIs, Loofah::Helpers.sanitize, :whitewash, rails-html-sanitizer's default configuration, and JRuby are not affected. This issue is fixed in version 2.25.3.
- Impact: Attackers can execute arbitrary script in victims' browsers, potentially leading to session hijacking or data theft.
- Remediation: Upgrade to version 2.25.3 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: securitycontext
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00271
- Epss percentile: 0.19359
- Assignee: [email protected]
- Published at: 2026-11-12T19:16:56Z
- Age in days: 12
- Modified at: 2026-11-12T22:09:39Z
- Patch available: yes
- References total: 7
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-126203
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| loofah_project:loofah | >= 2.21.0, < 2.25.3 | no | cna_alias_text | /v1/products/loofah_project/loofah |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| sparklemotion/nokogiri | commit, pull, releases | yes | /v1/repositories/sparklemotion/nokogiri |
| flavorjones/loofah | commit, package, pull, releases, security_advisory | yes | /v1/repositories/flavorjones/loofah |
Index
- Repositories: 123
- Repositories high signal: 87
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts