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

CVE-2024-53986: rails-html-sanitizer has XSS vulnerability with certain configurations

December 2, 2024 (updated December 3, 2024)

There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0.

  • Versions affected: 1.6.0
  • Not affected: < 1.6.0
  • Fixed versions: 1.6.1

References

  • github.com/advisories/GHSA-638j-pmjw-jq48
  • github.com/rails/rails-html-sanitizer
  • github.com/rails/rails-html-sanitizer/commit/f02ffbb8465e73920b6de0da940f5530f855965e
  • github.com/rails/rails-html-sanitizer/security/advisories/GHSA-638j-pmjw-jq48
  • nvd.nist.gov/vuln/detail/CVE-2024-53986

Code Behaviors & Features

Detect and mitigate CVE-2024-53986 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 starting from 1.6.0 before 1.6.1, version 1.6.0

Fixed versions

  • 1.6.1

Solution

Upgrade to version 1.6.1 or above.

Weakness

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

Source file

gem/rails-html-sanitizer/CVE-2024-53986.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 12 May 2025 12:14:17 +0000.