7.1

CVE-2023-36823: Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content

Modified
AliasesUBUNTU-CVE-2023-36823DEBIAN-CVE-2023-36823DLA-3652-1
Published 06-07-2023Last modified 13-02-2025

Vulnerability summary

CVE-2023-36823 is a high (CVSS 7.1) vulnerability in debian debian_linux. EPSS estimates a 0.71% chance of exploitation in the next 30 days, higher than 54.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v3.1 (CVE.org)
EPSS score
0.71%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 06-07-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.71%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.71% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • ruby-sanitize< 6.0.2-1 | < 4.6.6-2.1~deb10u2 | < 5.2.1-2+deb11u1 | < 6.0.0-1.1+deb12u1
  • debian_linuxEOL10.0
Rgrove1 product
RubyGems1 product
  • sanitize≥ 3.0.0, < 6.0.2
Sanitize_project1 product
Ubuntu1 product
  • ruby-sanitize< 4.6.6-2.1~0.20.04.2 | < 6.0.0-1ubuntu0.1

5 vendors · 6 products

References

11 links
Show all 11 references