Back
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…
High7.5EPSS 1.5%
- Published
- Updated
- Reserved
- Assigned by
- hackerone
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 1.5% · top 26% of all CVEs (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
Ryan Grove · sanitize (ruby gem)
- affected < 4.6.3
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemssanitizeGHSA-7f42-p84j-f58p (opens in a new tab)
References (4)
- DSA-4358 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- https://github.com/rgrove/sanitize/issues/176 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7f42-p84j-f58p (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-3740)Record last updated .