🛡️ CVE-2023-23627 on Debian — ruby-sanitize
Description
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.
Distribution advisory
This page covers CVE-2023-23627 as tracked by Debian, for the package ruby-sanitize. The fix is available in version 6.0.0-1.1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
DEBIAN-CVE-2023-23627 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
DEBIAN-CVE-2023-23627 is recorded against 1 package.
- ruby-sanitize (fixed in 6.0.0-1.1)
Timeline and source
Published on 28 January 2023 and last revised on 7 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2023-23627 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| ruby-sanitize | — | 6.0.0-1.1 |
References
Similar Threats
- Unknown USN-6748-1
- Unknown DSA-5616-1
- Unknown DLA-3652-1
- Unknown DEBIAN-CVE-2023-36823
- Unknown UBUNTU-CVE-2023-36823
Vulnerability Monitoring
Track new vulnerabilities in ruby-sanitize
DEBIAN-CVE-2023-23627 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.