CVE-2023-36823
Summary
| CVE | CVE-2023-36823 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-07-06 16:15:00 UTC |
| Updated | 2023-11-14 16:15:00 UTC |
| Description | 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| [SECURITY] [DLA 3652-1] ruby-sanitize security update |
|
lists.debian.org |
|
| Release v6.0.2 · rgrove/sanitize · GitHub |
MISC |
github.com |
|
| Insufficient neutralization of `style` element content may allow XSS in Sanitize · Advisory · rgrove/sanitize · GitHub |
MISC |
github.com |
|
| Merge pull request from GHSA-f5ww-cq3m-q3g7 · rgrove/sanitize@76ed46e · GitHub |
MISC |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 6000324 Debian Security Update for ruby-sanitize (DLA 3652-1)
- 6000470 Debian Security Update for ruby-sanitize (DSA 5616-1)