6.1

CVE-2024-53986: Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0

Analyzed
AliasesUBUNTU-CVE-2024-53986GHSA-638j-pmjw-jq48
Published 02-12-2024Last modified 03-12-2024

Vulnerability summary

CVE-2024-53986 is a medium (CVSS 6.1) vulnerability in rails rails-html-sanitizer. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 44.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
0.50%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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 "math" and "style" elements are both explicitly allowed. This vulnerability is fixed in 1.6.1.

CVSS metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

0.50%

Chance of exploitation in the next 30 days

Percentile

45%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.47% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

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