CVE-2023-23627

CVSS V2 None CVSS V3 None
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.
Overview
  • CVE ID
  • CVE-2023-23627
  • Assigner
  • security-advisories@github.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2023-01-28T00:15:09
  • Last Modified Date
  • 2023-02-06T19:05:10
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:sanitize_project:sanitize:*:*:*:*:*:ruby:*:* 1 OR 5.0.0 6.0.1
References
Reference URL Reference Tags
https://github.com/rgrove/sanitize/security/advisories/GHSA-fw3g-2h3j-qmm7 Mitigation Release Notes Third Party Advisory
History
Created Old Value New Value Data Type Notes
2023-04-17 06:54:16 Added to TrackCVE
2023-04-17 06:54:19 Weakness Enumeration new