7.2

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

Modified
AliasesUBUNTU-CVE-2022-23519DEBIAN-CVE-2022-23519GHSA-9h9g-93gc-623h
Published 14-12-2022Last modified 03-11-2025

Vulnerability summary

CVE-2022-23519 is a high (CVSS 7.2) vulnerability in debian debian_linux. EPSS estimates a 1.08% chance of exploitation in the next 30 days, higher than 66.1% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.2/10
010
High · v3.1 (CVE.org)
EPSS score
1.08%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github, reference

Advisory lineage

Upstream 0 · Downstream 10 · Related 7

Timeline

  1. 14-12-2022
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

Description

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways: allow both "math" and "style" elements, or allow both "svg" and "style" elements. Code is only impacted if allowed tags are being overridden. . This issue is fixed in version 1.4.4. All users overriding the allowed tags to include "math" or "svg" and "style" should either upgrade or use the following workaround immediately: Remove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.08%

Chance of exploitation in the next 30 days

Percentile

66%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 1.05% 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

2 found
  • githubUnverified

    Rails Html Sanitizer

    Maturity: poc

  • referenceUnverified

    Exploit Reference (hackerone.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

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

Debian2 products
Rails1 product
RubyGems1 product
  • rails-html-sanitizer< 1.4.4
Rubyonrails1 product
Ubuntu1 product
  • ruby-rails-html-sanitizerAll versions (No fix recorded) | < 1.0.3-2ubuntu0.1~esm1 | < 1.0.4-1ubuntu0.1~esm1 | < 1.3.0-1ubuntu0.1~esm1 | < 1.4.2-2ubuntu0.1~esm1

5 vendors · 6 products

References

11 links
Show all 11 references