CVE-2022-23519: Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.3496%
CWE
Published
12/13/2022
Updated
2/13/2025
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| rails-html-sanitizer | rubygems | < 1.4.4 | 1.4.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests when specific tag combinations (math+style or svg+style) are allowed through four configuration mechanisms. Three functions are directly involved: 1) The sanitize() helper method with tags parameter, 2) The class-level allowed_tags setter, and 3) The SafeListSanitizer.sanitize() method with tags parameter. These functions become vulnerable vectors when misconfigured because they permit dangerous element combinations that bypass proper sanitization. The advisory explicitly identifies these as the impacted code paths, making confidence high.