{"id":"CVE-2017-6927","published":"2018-03-01T22:00:00Z","modified":"2024-09-17T00:51:53Z","title":"Drupal 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 has a Drupal.checkPlain() JavaScript function…","vendor":"Drupal.org","product":"Drupal Core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01606,"percentile":0.76473,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.debian.org/security/2018/dsa-4123","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00030.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securityfocus.com/bid/103138","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.drupal.org/sa-core-2018-001","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":15.29}]},"vendorSlug":"drupal-org","affectedVersions":[{"vendor":"Drupal.org","product":"Drupal Core","versions":["8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57"]}],"affected":[{"ecosystem":"Packagist","package":"drupal/core","vulnerableRanges":[">=8.4.0, <8.4.5",">=7.0, <7.57"],"patched":["8.4.5","7.57"],"from":["GHSA-585j-5449-mf5m"],"provenance":"source"},{"ecosystem":"Packagist","package":"drupal/drupal","vulnerableRanges":[">=8.4.0, <8.4.5",">=7.0, <7.57"],"patched":["8.4.5","7.57"],"from":["GHSA-585j-5449-mf5m"],"provenance":"source"}],"summary":{"text":"The flaw is in the Drupal.checkPlain() JavaScript function, which Drupal Core uses to escape potentially dangerous text before it is output to HTML from JavaScript; it does not correctly handle all methods of injecting malicious HTML in Drupal 8.4.x before 8.4.5 and Drupal 7.x before 7.57. An attacker can exploit this to cause cross-site scripting under certain circumstances, and the PHP escaping functions Drupal provides are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:16Z"},"euvd":{"id":"EUVD-2022-2530","exploited":false,"provenance":"source"}}