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)
Published Mar 1, 2018
6.1
MEDIUMCVSS 3.0
EPSS 1.61%
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.
Affected products
-
- Version 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Drupal.org | Drupal Core | n/a |
|
Configuration 1
Configuration 2
- 7.0
- 8.0
- 9.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.61% (0.01606) | 74.99th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.70% (0.01705) | 74.22th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.58% (0.01581) | 79.88th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.24% (0.03239) | 78.33th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.15% (0.00153) | 52.00th | v3 (v2023.03.01) |
| May 27, 2024 | 0.15% (0.00153) | 51.52th | v3 (v2023.03.01) |
| Sep 25, 2023 | 0.22% (0.00217) | 59.20th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.24% (0.00238) | 61.19th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.56% (0.00565) | 74.39th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.04% (0.01040) | 28.32th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.04% (0.01040) | 0.00th | v1 |
References (8)
- http://www.securityfocus.com/bid/103138 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6927.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6927.yaml
- https://github.com/advisories/GHSA-585j-5449-mf5m Advisory
- https://lists.debian.org/debian-lts-announce/2018/02/msg00030.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-6927
- https://www.debian.org/security/2018/dsa-4123 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.drupal.org/sa-core-2018-001 x_refsource_CONFIRMVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/103138 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6927.yaml | ||
| https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6927.yaml | ||
| https://github.com/advisories/GHSA-585j-5449-mf5m | Advisory | |
| https://lists.debian.org/debian-lts-announce/2018/02/msg00030.html | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-6927 | ||
| https://www.debian.org/security/2018/dsa-4123 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| https://www.drupal.org/sa-core-2018-001 | x_refsource_CONFIRMVendor Advisory |
Change history (0)
No recorded changes yet.