# CVE-2023-23627: Improper neutralization of `noscript` element content may allow XSS in Sanitize

Source: https://junglewise.ai/threats/cve-2023-23627-improper-neutralization-of-noscript-element-content-may-allow-xss  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-01-28  
License: CC BY 4.0 with a link back

CVE-2023-23627 · Severity: low · CVSS 3.1 · Published 2023-01-28

Improper neutralization of `noscript` element content may allow XSS in Sanitize

Technologies: [sanitize (RubyGems)](https://junglewise.ai/threats/technologies/sanitize). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2023-23627 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-23627 being exploited in the wild.

**How severe is CVE-2023-23627?** Low severity, with a CVSS score of 3.1, published 28 January 2023.

**Which products and versions are affected?** sanitize (RubyGems) ECOSYSTEM:introduced=5.0.0,fixed=6.0.1.

**Is there a fix for CVE-2023-23627?** Yes. sanitize (RubyGems): upgrade to 6.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-23627?** Check whether you run sanitize (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- sanitize (RubyGems): upgrade to 6.0.1 or later

  ```sh
  bundle update sanitize
  ```


## Affected products

- sanitize (RubyGems) ECOSYSTEM:introduced=5.0.0,fixed=6.0.1

## Identifiers

- CVE-2023-23627
- GHSA-fw3g-2h3j-qmm7

## Related threats

- [Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content](https://junglewise.ai/threats/cve-2023-36823-sanitize-vulnerable-to-cross-site-scripting-via-insufficient)
- [Cross-site Scripting in Sanitize](https://junglewise.ai/threats/cve-2020-4054-cross-site-scripting-in-sanitize)
- [Sanitize vulnerable to Improper Input Validation and Cross-site Scripting](https://junglewise.ai/threats/cve-2018-3740-sanitize-vulnerable-to-improper-input-validation-and-cross-site)
