GHSA-f5ww-cq3m-q3g7 · Severity: high · Ecosystem: rubygems — Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content
Sanitize is an allowlist-based HTML and CSS sanitizer. Using carefully crafted input, an attacker may be able to sneak arbitrary HTML and CSS through Sanitize starting with version 3.0.0 and prior to version 6.0.2 when Sanitize is configured to use the built-in "relaxed" config or when using a custom config that allows `style` elements and one or more CSS at-rules. This could result in cross-site scripting or other undesired behavior when the malicious HTML and CSS are rendered in a browser. Sanitize 6.0.2 performs additional escaping of CSS in `style` element content, which fixes this issue. Users who are unable to upgrade can prevent this issue by using a Sanitize config that doesn't allow `style` elements, using a Sanitize config that doesn't allow CSS at-rules, or by manually escaping the character sequence `</` as `<\/` in `style` element content.
Conclusion & alert: CVE-2023-36823 is rated Moderate Risk (50/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.41%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-31 | 0.33% | 0.41% | +0.08% |
| 2 | 2025-11-21 | 0.72% | 0.33% | -0.39% |
| 3 | 2025-11-18 | — | 0.72% | — |
Full EPSS history (14 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.1 | 3.1 | HIGH |
|
2.8 | 3.7 | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-f5ww-cq3m-q3g7 · Severity: high · Ecosystem: rubygems — Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2023-36823 not yet assigned priority: Debian including 1 source packages (ruby-sanitize), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2023-36823 |
ubuntu
|
medium | CVE-2023-36823 medium priority: Ubuntu including 1 source packages (ruby-sanitize), 9 status rows across 9 suites (bionic, focal, jammy, kinetic, lunar, mantic, trusty, upstream, xenial): ignored 3, released 3, not-affected 2, needs-triage 1. | https://ubuntu.com/security/CVE-2023-36823 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| sanitize_project | sanitize | >= 3.0.0, < 6.0.2 | cpe:2.3:a:sanitize_project:sanitize:*:*:*:*:*:ruby:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |