
CVE-Katalog
CVE-2026-126205
ruby-loofah affected and fixed versions
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.
- Schweregrad
- Medium · CVSS 3.1 · 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Dec 4, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiansid | ruby-loofah | 2.25.3-1 | FixedDistribution-reported fixed boundary | [CVE-2026-126205] |
| Debianforky | ruby-loofah | 2.25.3-1 | FixedDistribution-reported fixed boundary | [CVE-2026-126205] |
More observations (16)
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | ruby-loofah | Not reported | AffectedDistribution reports no fix | [CVE-2026-126205] |
| Debianbookworm | ruby-loofah | 2.19.1-1 | Affected | [CVE-2026-126205] |
| Debiantrixie | ruby-loofah | Not reported | AffectedDistribution reports no fix | [CVE-2026-126205] |
| Debiantrixie | ruby-loofah | 2.24.0-1 | Affected | [CVE-2026-126205] |
| Ubuntu24.04 | ruby-loofah | 2.21.3-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu24.04 | ruby-loofah | 2.21.4-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu24.04 | ruby-loofah | 2.22.0-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu26.04 | ruby-loofah | 2.24.1-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu26.04 | ruby-loofah | 2.25.0-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu26.10 | ruby-loofah | 2.25.0-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu26.10 | ruby-loofah | 2.25.1-2 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntu26.10 | ruby-loofah | 2.25.2-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntupro | ruby-loofah | 2.12.0-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntupro | ruby-loofah | 2.13.0-1 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntupro | ruby-loofah | 2.13.0-2 | Affected | [UBUNTU-CVE-2026-126205] |
| Ubuntupro | ruby-loofah | 2.13.0-2ubuntu0.1~esm1 | Affected | [UBUNTU-CVE-2026-126205] |
Publisher notes
[trixie] ruby-loofah: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-loofah]Betroffen
Details (2)
2.19.1-1· all · bookwormBetroffen
dsa · ruby-loofah · debian · bookworm; pypi · ruby-loofah · debian · 12
2.19.1-1· all · bookwormBetroffen
dsa · ruby-loofah · debian · bookworm; pypi · ruby-loofah · debian · 12
[Debian 13 (Trixie)]
- [ruby-loofah]Betroffen
Details (2)
2.24.0-1· all · trixieBetroffen
pypi · ruby-loofah · debian · 13
2.24.0-1· all · trixieBetroffen
pypi · ruby-loofah · debian · 13
Beobachtet:
Referenzen
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/flavorjones/loofah/commit/2f31e7fae36036c9882d3d0fae720e1014c57cd1]
- [https://github.com/flavorjones/loofah/pull/324]
- [https://github.com/flavorjones/loofah/releases/tag/v2.25.3]
- [https://github.com/flavorjones/loofah/security/advisories/GHSA-mf2j-8f84-cc9q]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-126205]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-126205]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-126205]
- [https://security-tracker.debian.org/tracker/CVE-2026-126205]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]