{"id":"CVE-2018-3740","state":"PUBLISHED","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.","publishedAt":"2018-03-30T19:00:00.000Z","updatedAt":"2024-08-05T04:50:30.616Z","severity":null,"assigner":"hackerone","products":["Ryan Grove sanitize (ruby gem)"],"affected":[{"vendor":"Ryan Grove","product":"sanitize (ruby gem)","versions":[{"version":"< 4.6.3","status":"affected"}]}],"references":["https://www.debian.org/security/2018/dsa-4358","https://github.com/rgrove/sanitize/issues/176","https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:44:49.047Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/3xxx/CVE-2018-3740.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2018-3740","state":"PUBLISHED","datePublished":"2018-03-30T19:00:00.000Z","dateUpdated":"2024-08-05T04:50:30.616Z","assignerShortName":"hackerone","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateReserved":"2017-12-28T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element."}],"affected":[{"vendor":"Ryan Grove","product":"sanitize (ruby gem)","versions":[{"version":"< 4.6.3","status":"affected"}]}],"references":[{"url":"https://www.debian.org/security/2018/dsa-4358","name":"DSA-4358","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/rgrove/sanitize/issues/176","tags":["x_refsource_CONFIRM"]},{"url":"https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"hackerone","dateUpdated":"2018-12-28T10:57:01.000Z","orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1"},"datePublic":"2018-03-30T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"support@hackerone.com","ID":"CVE-2018-3740","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"sanitize (ruby gem)","version":{"version_data":[{"version_value":"< 4.6.3"}]}}]},"vendor_name":"Ryan Grove"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79)"}]}]},"references":{"reference_data":[{"name":"DSA-4358","refsource":"DEBIAN","url":"https://www.debian.org/security/2018/dsa-4358"},{"name":"https://github.com/rgrove/sanitize/issues/176","refsource":"CONFIRM","url":"https://github.com/rgrove/sanitize/issues/176"},{"name":"https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","refsource":"CONFIRM","url":"https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/"},{"name":"https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e","refsource":"CONFIRM","url":"https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.debian.org/security/2018/dsa-4358","name":"DSA-4358","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://github.com/rgrove/sanitize/issues/176","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T04:50:30.616Z"}}]}}}