Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails-html-sanitizer
  4. ›
  5. CVE-2022-23520

CVE-2022-23520: Possible XSS vulnerability with certain configurations of rails-html-sanitizer

December 13, 2022 (updated February 13, 2025)

There is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.

  • Versions affected: ALL
  • Not affected: NONE
  • Fixed versions: 1.4.4

References

  • github.com/advisories/GHSA-rrfc-7g8p-99q8
  • github.com/rails/rails-html-sanitizer
  • github.com/rails/rails-html-sanitizer/security/advisories/GHSA-rrfc-7g8p-99q8
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-23520.yml
  • hackerone.com/reports/1654310
  • lists.debian.org/debian-lts-announce/2023/09/msg00012.html
  • nvd.nist.gov/vuln/detail/CVE-2022-23520

Code Behaviors & Features

Detect and mitigate CVE-2022-23520 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.4

Fixed versions

  • 1.4.4

Solution

Upgrade to version 1.4.4 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

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

Source file

gem/rails-html-sanitizer/CVE-2022-23520.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:38 +0000.