{"cve":"CVE-2018-3740","nvd":{"published":"2018-03-30T19:29:00.270","modified":"2026-06-17T01:57:45.180","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-20","CWE-79"],"references":["https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e","https://github.com/rgrove/sanitize/issues/176","https://www.debian.org/security/2018/dsa-4358","https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/"],"products":["sanitize_project:sanitize"],"source":"nvd","synced_at":"2026-10-19T20:49:59.483420567+00:00"},"epss":{"cve":"CVE-2018-3740","score":0.01468,"percentile":0.73732,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7f42-p84j-f58p","url":"https://osv.dev/vulnerability/GHSA-7f42-p84j-f58p","summary":"Sanitize vulnerable to Improper Input Validation and Cross-site Scripting","modified":"2024-02-16T08:20:34.576085Z","packages":[{"ecosystem":"RubyGems","name":"sanitize","purl":"pkg:gem/sanitize","ranges":[">=3.0.0 <4.6.3"],"fixed":["4.6.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}