CVE-2017-6927 Drupal cross-site scripting vulnerability
MediumCVSS 6.1
EPSS 1.6%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
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
| Product | Affected versions | Fixed in |
|---|---|---|
| drupal/core(Packagist) | >= 8.4.0, < 8.4.5 | 8.4.5 |
| drupal/core(Packagist) | = 8.4.0 | No fix listed |
| drupal/core(Packagist) | = 8.4.1 | No fix listed |
| drupal/core(Packagist) | = 8.4.2 | No fix listed |
| drupal/core(Packagist) | = 8.4.3 | No fix listed |
| drupal/core(Packagist) | = 8.4.4 | No fix listed |
| drupal/core(Packagist) | >= 7.0, < 7.57 | 7.57 |
| drupal/drupal(Packagist) | >= 8.4.0, < 8.4.5 | 8.4.5 |
| drupal/drupal(Packagist) | = 8.4.0 | No fix listed |
| drupal/drupal(Packagist) | = 8.4.1 | No fix listed |
| drupal/drupal(Packagist) | = 8.4.2 | No fix listed |
| drupal/drupal(Packagist) | = 8.4.3 | No fix listed |
| drupal/drupal(Packagist) | = 8.4.4 | No fix listed |
| drupal/drupal(Packagist) | >= 7.0, < 7.57 | 7.57 |
| drupal/drupal | >= 7.0, < 7.57 | 7.57 |
| drupal/drupal | >= 8.4.0, < 8.4.5 | 8.4.5 |
| debian linux | = 7.0 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| Drupal.org Drupal Core | = 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit
- github.com exploit
- github.com product
- [debian-lts-announce] 20180228 [SECURITY] [DLA 1295-1] drupal7 security update mailing-list third-party-advisory
- DSA-4123 third-party-advisory vendor-advisory
- www.drupal.org vendor-advisory
- 103138 third-party-advisory vdb-entry
- github.com