{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-6927","id":"CVE-2017-6927","title":"Drupal cross-site scripting vulnerability","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 un","descriptionLong":"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-01T22:00:00.000Z","updated":"2026-10-24T10:30:54.645284313Z","reserved":"2017-03-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"drupal","metric":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Drupal.org Drupal Core"],"affectedProducts":[{"vendor":"Drupal.org","product":"Drupal Core","defaultStatus":null,"versions":[{"status":"affected","version":"8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"drupal/core","purl":"pkg:composer/drupal/core","ranges":[">=8.4.0 <8.4.5",">=7.0 <7.57"],"fixed":["8.4.5","7.57"],"advisory":"GHSA-585j-5449-mf5m"},{"ecosystem":"Packagist","name":"drupal/drupal","purl":"pkg:composer/drupal/drupal","ranges":[">=8.4.0 <8.4.5",">=7.0 <7.57"],"fixed":["8.4.5","7.57"],"advisory":"GHSA-585j-5449-mf5m"}],"cwes":["CWE-79"],"aliases":["GHSA-585j-5449-mf5m"],"references":[{"url":"https://www.debian.org/security/2018/dsa-4123","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00030.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"http://www.securityfocus.com/bid/103138","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://www.drupal.org/sa-core-2018-001","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-6927","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6927.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6927.yaml","tags":["web"]},{"url":"https://github.com/drupal/core","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01606,"epssPercentile":0.76366,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-6927","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-6927","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-6927","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-585j-5449-mf5m","ok":true,"note":"GHSA-585j-5449-mf5m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-6927","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["drupal"],"critical":[],"attention":null}