Loading advisory.
Loading advisory.
Cross-site Scripting in loofah
Loofah allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments.
Published 2018-03-21 11:57 UTC · Modified 2024-08-05 06:46 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| loofah | RubyGems | < 2.2.1 versions 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 1.0.0, 1.0.0.beta.1, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.0.1 and 7 more | 2.2.1 | gem install loofah -v 2.2.1 |
| nokogiri | RubyGems | < 1.8.3 versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0, 1.4.1 and 82 more | 1.8.3 | gem install nokogiri -v 1.8.3 |
Loofah allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments.
Users are affected if running Loofah < 2.2.1, but only:
when running on MRI or RBX,
in combination with libxml2 >= 2.9.2.
JRuby users are not affected.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.019 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.019 | first score | v2026.06.15 |