Lucene search

K
osvGoogleOSV:GHSA-585J-5449-MF5M
HistoryMay 14, 2022 - 3:35 a.m.

Drupal cross-site scripting vulnerability

2022-05-1403:35:58
Google
osv.dev
4
drupal
cross-site scripting
vulnerability
8.4.x
8.4.5
7.x
7.57
javascript
twig
php
html.

AI Score

5.8

Confidence

High

EPSS

0.002

Percentile

51.7%

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.

AI Score

5.8

Confidence

High

EPSS

0.002

Percentile

51.7%