XSS in Ryan Grove Sanitize (Ruby Gem)
CVE-2018-3740
A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.015, 74.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Ryan Grove Sanitize (Ruby Gem) — versions < 4.6.3
- Sanitize Project
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- DSA-4358 (vendor-advisory)
- github.com/rgrove/sanitize/issues/176 (Third Party Advisory, Issue Tracking)
- about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/
- github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e (Patch, Third Party Advisory)