CVE-2022-23518

Improper neutralization of data URIs allows XSS in rails-html-sanitizer

State
Published
Severity
6.1 Medium
Published
Dec 14, 2022
Updated
Nov 3, 2025
Reserved
Jan 19, 2022

Read the record on cve.org

Description

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.

Scores

CVSSScoreVectorSource
3.06.1 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected Products

ProductVersions
rails-html-sanitizerrails
  • >= 1.0.3, < 1.4.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.