{"id":"CVE-2017-6927","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-6927","generatedAt":"2026-10-28T21:16:39.738Z","title":"This function does not correctly handle all methods of injecting malicious HTML, leading to a cross-site scripting vulnerability under certain circumstances.","description":"Drupal 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 has a Drupal.checkPlain() JavaScript function which is used to escape potentially dangerous text before outputting it to HTML (as JavaScript output does not typically go through Twig autoescaping). This function does not correctly handle all methods of injecting malicious HTML, leading to a cross-site scripting vulnerability under certain circumstances. The PHP functions which Drupal provides for HTML escaping are not affected.","published":"2018-03-01T23:29:00.000Z","lastModified":"2026-06-17T01:23:21.000Z","status":"Modified","sourceIdentifier":"mlhess@drupal.org","cvss":{"version":"3.0","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"cwe":["CWE-79"],"affected":["drupal/drupal","debian/debian linux"],"epss":{"score":0.01606,"percentile":0.75745,"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":"low","text":"Lower severity and a low EPSS score (1.61%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"http://www.securityfocus.com/bid/103138","tags":["Third Party Advisory","VDB Entry"],"source":"mlhess@drupal.org"},{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00030.html","tags":["Mailing List","Third Party Advisory"],"source":"mlhess@drupal.org"},{"url":"https://www.debian.org/security/2018/dsa-4123","tags":["Third Party Advisory"],"source":"mlhess@drupal.org"},{"url":"https://www.drupal.org/sa-core-2018-001","tags":["Vendor Advisory"],"source":"mlhess@drupal.org"},{"url":"http://www.securityfocus.com/bid/103138","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00030.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2018/dsa-4123","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.drupal.org/sa-core-2018-001","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-6927","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."}