Description
Cross-site scripting (XSS) vulnerability in the RedCloth library 4.2.9 for Ruby and earlier allows remote attackers to inject arbitrary web script or HTML via a javascript: URI.
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-redcloth | 4.2.9-4 | — |
| Debian 13 | ruby-redcloth | 4.2.9-4 | — |
| Debian 12 | ruby-redcloth | 4.2.9-4 | — |
| Debian 7 | ruby-redcloth | 4.2.9-2+deb7u2 | DSA-3168-1 |
| Debian 6.0 | redcloth | 4.2.2-1.1+deb6u1 | DLA-167-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | RedCloth | < 4.3.0 | 4.3.0 | GHSA-r23g-3qw4-gfh2 |
Advisories 2
- DSA-3168-1 ruby-redcloth - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-167-1 redcloth - security update Debian Security (DSA / DLA) · Mar 9, 2026