6.1

CVE-2024-53987: rails rails-html-sanitizer Cross-site Scripting

CVSS: 6.1v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2024-53987GHSA-2x5m-9ch4-qgrr
Published 02-12-2024Last modified 03-12-2024

Vulnerability summary

CVE-2024-53987 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in rails rails-html-sanitizer. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.7% of scored vulnerabilities.

Overall risk
24/100
0100
Low · default modelHow is this calculated?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
0.45%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 02-12-2024
    PublishedVulnerability first disclosed.
  2. 03-12-2024
    Last modifiedVulnerability information updated.

Description

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags where the "style" element is explicitly allowed and the "svg" or "math" element is not allowed. This vulnerability is fixed in 1.6.1.

CVSS metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

0.45%

Chance of exploitation in the next 30 days

Percentile

38%

Versus all other CVEs

30-day change

0.00 pp

From 0.45% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.45%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Rails1 product
RubyGems1 product
  • rails-html-sanitizer≥ 1.6.0, < 1.6.1
Rubyonrails1 product
Ubuntu1 product
  • ruby-rails-html-sanitizerAll versions (No fix recorded)

4 vendors · 4 products

References

7 links