CVE-2018-3740: ryan grove sanitize (ruby gem)
Vulnerability summary
CVE-2018-3740 is a high (CVSS 7.5) vulnerability in ryan grove sanitize (ruby gem). EPSS estimates a 1.47% chance of exploitation in the next 30 days, higher than 74.6% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 30-03-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · RubygemsEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
1.47%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.47% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- ruby-sanitize< 4.6.6-1 | < 2.1.0-2+deb9u1
RubyGems1 product
- sanitize≥ 3.0.0, < 4.6.3
Ryan grove1 product
- sanitize (ruby gem)< 4.6.3
Sanitize_project1 product
- sanitize≤ 4.6.0
Ubuntu1 product
- ruby-sanitize< 2.1.0-2+deb9u1build0.16.04.1 | < 2.1.0-2+deb9u1build0.18.04.1
5 vendors · 5 products
References
12 links- about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/X Refsource CONFIRM
- github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46eX Refsource CONFIRMPatchThird Party AdvisoryREPORTWEB
Show all 12 references
- github.com/rgrove/sanitizePACKAGE