First published: Tue Feb 20 2018(Updated: )
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.
Credit: mlhess@drupal.org mlhess@drupal.org
Affected Software | Affected Version | How to fix |
---|---|---|
composer/drupal/core | >=8.0<8.1.0>=8.1.0<8.2.0>=8.2.0<8.3.0>=8.3.0<8.4.0>=8.4.0<8.4.5 | |
composer/drupal/drupal | >=8.0<8.1.0>=8.1.0<8.2.0>=8.2.0<8.3.0>=8.3.0<8.4.0>=8.4.0<8.4.5 | |
Drupal Drupal | >=7.0<7.57 | |
Drupal Drupal | >=8.4.0<8.4.5 | |
Debian Debian Linux | =7.0 | |
Debian Debian Linux | =8.0 | |
Debian Debian Linux | =9.0 | |
debian/drupal7 | ||
debian/drupal7 | <=7.32-1<=7.56-1 | 7.57-1 7.52-2+deb9u2 7.32-1+deb8u10 |
composer/drupal/drupal | >=7.0<7.57 | 7.57 |
composer/drupal/drupal | >=8.4.0<8.4.5 | 8.4.5 |
composer/drupal/core | >=7.0<7.57 | 7.57 |
composer/drupal/core | >=8.4.0<8.4.5 | 8.4.5 |
>=7.0<7.57 | ||
>=8.4.0<8.4.5 | ||
=7.0 | ||
=8.0 | ||
=9.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.