Description
In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Loofah (rubygem) | Fixed in v2.3.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-loofah | 2.3.1+dfsg-1 | — |
| Debian 13 | ruby-loofah | 2.3.1+dfsg-1 | — |
| Debian 12 | ruby-loofah | 2.3.1+dfsg-1 | — |
| Debian 10 | ruby-loofah | 2.2.3-1+deb10u1 | DSA-4554-1 |
| Debian 9 | ruby-loofah | 2.0.3-2+deb9u3 | DSA-4554-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ruby-loofah | No fix yet | — |
| Ubuntu 16.04 LTS | ruby-loofah | 2.0.3-2+deb9u3build0.16.04.1 | USN-4498-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
| SLES 15 SP3 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
| SLES 15 SP2 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
| SLES 15 SP1 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
| SLES 15 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud Crowbar 9 | rubygem-loofah | 2.0.2-3.11.1 | SUSE-SU-2022:4075-1 |
| SUSE OpenStack Cloud Crowbar 8 | rubygem-loofah | 2.0.2-3.11.1 | SUSE-SU-2022:4075-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ruby3.2-rubygem-loofah | 2.19.1-1.2 | openSUSE-SU-2024:13162-1 |
| openSUSE Tumbleweed | rubygem-loofah | 2.14.0-1.1 | openSUSE-SU-2026:10353-1, openSUSE-SU-2025:15120-1, openSUSE-SU-2024:14171-1 |
| openSUSE Leap 15.4 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
| openSUSE Leap 15.3 | rubygem-loofah | 2.2.2-150000.4.6.1 | SUSE-SU-2022:3868-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | loofah | < 2.3.1 | 2.3.1 | GHSA-c3gv-9cxf-6f57 |
Advisories 9
- USN-4498-1 ruby-loofah vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2026:10353-1 ruby4.0-rubygem-loofah-2.23.1-1.5 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- DSA-4554-1 ruby-loofah - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:13162-1 ruby3.2-rubygem-loofah-2.19.1-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14171-1 ruby3.3-rubygem-loofah-2.22.0-1.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11900-1 ruby3.1-rubygem-loofah-2.14.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4075-1 Security update for rubygem-loofah SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3868-1 Security update for rubygem-loofah SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:15120-1 ruby3.4-rubygem-loofah-2.23.1-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://hackerone.com/reports/709009
- https://github.com/flavorjones/loofah/issues/171
- DSA-4554 vendor-advisory
- https://security.netapp.com/advisory/ntap-20191122-0003/
- FEDORA-2020-03c0964b6a vendor-advisory
- FEDORA-2020-1ebc4b8284 vendor-advisory
- USN-4498-1 vendor-advisory