6.1

CVE-2022-23518: Improper neutralization of data URIs allows XSS in rails-html-sanitizer

Modified
AliasesUBUNTU-CVE-2022-23518DEBIAN-CVE-2022-23518GHSA-mcvf-2q2m-x72m
Published 14-12-2022Last modified 03-11-2025

Vulnerability summary

CVE-2022-23518 is a medium (CVSS 6.1) vulnerability in debian debian_linux. EPSS estimates a 0.94% chance of exploitation in the next 30 days, higher than 62.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

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

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.0 (CVE.org)
EPSS score
0.94%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

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. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.

CVSS metrics

7 scores · 5 sources · 2 versions

EPSS trend

Probability

0.94%

Chance of exploitation in the next 30 days

Percentile

62%

Versus all other CVEs

30-day change

Increase +0.02 pp

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

1 found
  • githubUnverified

    Rails Html Sanitizer

    Maturity: poc

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.

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

6 vendors · 7 products

References

13 links
Show all 13 references