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

CVE-2022-23519: 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.

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

References

  • github.com/advisories/GHSA-9h9g-93gc-623h
  • github.com/rails/rails-html-sanitizer
  • github.com/rails/rails-html-sanitizer/security/advisories/GHSA-9h9g-93gc-623h
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-23519.yml
  • hackerone.com/reports/1656627
  • lists.debian.org/debian-lts-announce/2023/09/msg00012.html
  • nvd.nist.gov/vuln/detail/CVE-2022-23519

Code Behaviors & Features

Detect and mitigate CVE-2022-23519 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 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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-23519.yml

Spotted a mistake? Edit the file on GitLab.

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

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