{"id":"CVE-2018-3740","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-3740","generatedAt":"2026-10-28T20:10:14.902Z","title":"A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.","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.","published":"2018-03-30T19:29:00.000Z","lastModified":"2026-06-17T01:57:45.000Z","status":"Modified","sourceIdentifier":"support@hackerone.com","cvss":{"version":"3.0","score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"cwe":["CWE-79","CWE-20"],"affected":["sanitize project/sanitize"],"epss":{"score":0.01468,"percentile":0.7359,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.47%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","source":"support@hackerone.com"},{"url":"https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e","tags":["Patch","Third Party Advisory"],"source":"support@hackerone.com"},{"url":"https://github.com/rgrove/sanitize/issues/176","tags":["Issue Tracking","Third Party Advisory"],"source":"support@hackerone.com"},{"url":"https://www.debian.org/security/2018/dsa-4358","source":"support@hackerone.com"},{"url":"https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/rgrove/sanitize/issues/176","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2018/dsa-4358","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-3740","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}