# sanitize (RubyGems) vulnerabilities

4 known vulnerabilities (2 high, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://rubygems.org/gems/sanitize

## Advisories (4)

### [CVE-2023-36823](https://cve.now/CVE-2023-36823): Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of \`style\` element content

- Severity: High 7.1
- Published: Jul 6, 2023
- Affected: from 3.0.0, fixed in 6.0.2.

### [CVE-2023-23627](https://cve.now/CVE-2023-23627): Sanitize vulnerable to Cross-site Scripting via Improper neutralization of \`noscript\` element

- Severity: Medium 6.1
- Published: Jan 27, 2023
- Affected: from 5.0.0, fixed in 6.0.1.

### [CVE-2020-4054](https://cve.now/CVE-2020-4054): Cross-site Scripting in Sanitize

- Severity: High 7.3
- Published: Jun 16, 2020
- Affected: from 3.0.0, fixed in 5.2.1.

### [CVE-2018-3740](https://cve.now/CVE-2018-3740): A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML…

- Severity: Unrated
- Published: Mar 30, 2018
- Affected: from 3.0.0, fixed in 4.6.3.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/rubygems/sanitize
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
