ruby-sanitize: Sanitize is an allowlist-based HTML and CSS sanitizer
CVE-2023-23627 is fixed in ruby-sanitize on 1 platform, first by DEBIAN-CVE-2023-23627, released January 28, 2023. It is not reported as exploited. Patch Radar priority: Routine.
Sanitize is an allowlist-based HTML and CSS sanitizer. Versions 5.0.0 and later, prior to 6.0.1, are vulnerable to Cross-site Scripting. When Sanitize is configured with a custom allowlist that allows `noscript` elements, attackers are able to include arbitrary HTML, resulting in XSS (cross-site scripting) or other undesired behavior when that HTML is rendered in a browser. The default configurations do not allow `noscript` elements and are not vulnerable. This issue only affects users who are using a custom config that adds `noscript` to the element allowlist. This issue has been patched in version 6.0.1. Users who are unable to upgrade can prevent this issue by using one of Sanitize's default configs or by ensuring that their custom config does not include `noscript` in the element allowlist.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| ruby-sanitize · Debian 12.15 (bookworm) | 6.0.0-1.1 | DEBIAN-CVE-2023-23627 | Jan 28, 2023 |
| ruby-sanitize · Debian 13.5 (trixie) | 6.0.0-1.1 | DEBIAN-CVE-2023-23627 | Jan 28, 2023 |
| ruby-sanitize · Debian 14 | 6.0.0-1.1 | DEBIAN-CVE-2023-23627 | Jan 28, 2023 |
| ruby-sanitize · Ubuntu 20.04 LTS (focal) | 4.6.6-2.1~0.20.04.2 | ruby-sanitize 4.6.6-2.1~0.20.04.2 | Jul 6, 2023 |
| ruby-sanitize · Ubuntu 22.04.1 LTS (jammy) | 6.0.0-1ubuntu0.1 | ruby-sanitize 6.0.0-1ubuntu0.1 | Jul 6, 2023 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.