7.5high
CVE-2018-3740
Sanitize vulnerable to Improper Input Validation and Cross-site Scripting
Also known as GHSA-7f42-p84j-f58p
Published 8 y ago · modified 4 mo ago · JSON
CVSS
7.5
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.5%
percentile 74%
Public exploits
0
none known
Summary
A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.
Exploit prediction (EPSS)
1.47% probability of exploitation in the next 30 days, higher than 74% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | sanitize | >=3.0.0, <4.6.3 | 4.6.3 |
Affected products
- Ryan Grove sanitize (ruby gem)
Classification
References
- debian.org /security/2018/dsa-4358 · vendor-advisory, x_refsource_DEBIAN, x_transferred
- github.com /rgrove/sanitize/issues/176 · x_refsource_CONFIRM, x_transferred
- about.gitlab.com /2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/ · x_refsource_CONFIRM, x_transferred
- github.com /rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e · x_refsource_CONFIRM, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2018-3740 · advisory
- github.com /rgrove/sanitize/commit/93feeb38e21864146bb29191792b971dbe1ec62e · web
- about.gitlab.com /2018/06/25/security-release-gitlab-11-dot-0-dot-1-released · web
- github.com /rgrove/sanitize · package
- github.com /rubysec/ruby-advisory-db/blob/master/gems/sanitize/CVE-2018-3740.yml · web
Sources
- CVE List: CVE-2018-3740
- GitHub Advisory: GHSA-7f42-p84j-f58p
- NVD: CVE-2018-3740
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.