VDB
CVE-2018-3740
CVE-2018-3740
PUBLISHED
CVSS 7.5 HIGH
Sanitize vulnerable to Improper Input Validation and Cross-site Scripting
Reported by hackerone · Published March 30, 2018
sanitize is fixed in 4.6.3 (RubyGems)
A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sanitize | RubyGems | 4.6.3 |
Risk scores
CVSS 3.0
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Ryan Grove | sanitize (ruby gem) | < 4.6.3 |
| Ryan Grove | sanitize (ruby gem) | 0 |
| RubyGems | sanitize | 1.1.0 |
| arch | gitlab | 0 |
Timeline
- Mar 21, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 10, 2026 Security Advisory (2 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Sep 20, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-3740
vulnetix vdb fixes CVE-2018-3740
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-3740/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-4358 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM