CVE-2018-3740
publishedrubygem-sanitize: Improper filtering by libxml2 allows for cross-site scripting (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ryan Grove | — | sanitize (ruby gem)< 4.6.3 | Affected | Not stated | hackerone |
| Debian | stretch | ruby-sanitize | Advisory build | 2.1.0-2+deb9u1 | DSA-4358-1 |
Description
A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Ryan Grove | sanitize (ruby gem) | < 4.6.3 (affected) | hackerone · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79)
References
4Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a8c838d6b20521a42bddbf3a447baa819cd30cf5274373d5c3ef4c6b34c648c2
- Ingested
- 23 Sep 2026, 07:44:43 UTC
- Source record
- Official CVE record