Medium

Drupal cross-site scripting vulnerability

  • Disclosed: 14.05.2022
  • Updated: 11.10.2026 11:18

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package drupal/core >= 8.4.0, < 8.4.5, >= 7.0, < 7.57 8.4.5, 7.57
Composer package drupal/drupal >= 8.4.0, < 8.4.5, >= 7.0, < 7.57 8.4.5, 7.57
Drupal (core) drupal/core >= 8.4.0, < 8.4.5, >= 7.0, < 7.57, >= 8.4.0, < 8.4.5, >= 7.0, < 7.57 8.4.5, 7.57

References

CVSS score 6.1/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Composer, Drupal
Package
drupal/core, drupal/drupal
Disclosed
14.05.2022
Updated
11.10.2026 11:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-585j-5449-mf5m - CC BY 4.0

Vulnerability history: drupal/core

All published vulnerabilities of this package (Drupal (core)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (165) in the archive
Total entries
165
First → latest
02.2018 09.2026
Without a fix
3
Exploited in attacks
5

Severity breakdown

  • Critical 17
  • High 44
  • Medium 72
  • Low 6
  • Unrated 26

Disclosures per year

  1. 2018: 4
  2. 2019: 14
  3. 2020: 12
  4. 2021: 11
  5. 2022: 61
  6. 2023: 6
  7. 2024: 36
  8. 2025: 8
  9. 2026: 13
Severity:
  1. Critical · 9.8 Exploited in attacks CVE-2026-9082 >= 8.9.0, < 10.4.10, >= 10.5.0, < 10.5.10, >= 10.6.0, < 10.6.9, >= 11.0.0, < 11.1.10, >= 11.2.0, < 11.2.12, >= 11.3.0, < 11.3.10 10.4.10, 10.5.10, 10.6.9, 11.1.10, 11.2.12, 11.3.10
  2. High · 9.8 CVE-2024-55638 >= 8.8.0, < 10.2.11, >= 10.3.0, < 10.3.9, >= 7.0, < 7.102, >= 8.8.0, < 10.2.11, >= 10.3.0, < 10.3.9, >= 7.0, < 7.102, >= 8.8.0, < 10.2.11, >= 10.3.0, < 10.3.9, >= 7.0, < 7.102 10.2.11, 10.3.9, 7.102
  3. High · 9.8 CVE-2024-55637 >= 8.8.0, < 10.2.11, >= 10.3.0, < 10.3.9, >= 11.0.0, < 11.0.8, >= 8.8.0, < 10.2.11, >= 10.3.0, < 10.3.9, >= 11.0.0, < 11.0.8, >= 8.8.0, < 10.2.11, >= 10.3.0, < 10.3.9, >= 11.0.0, < 11.0.8 10.2.11, 10.3.9, 11.0.8
  4. High · 7.8 ghsa-j66p-fvp2-fxhj >= 7.0.0, < 7.75, >= 8.0.0, < 8.8.12, >= 8.9.0, < 8.9.10, >= 9.0.0, < 9.0.9 7.75, 8.8.12, 8.9.10, 9.0.9
  5. High · 8.1 ghsa-m9fv-whq2-6wmc >= 7.0.0, < 7.69, >= 8.0.0, < 8.7.11, >= 8.8.0, < 8.8.1 7.69, 8.7.11, 8.8.1
  6. Critical ghsa-jf8c-36vw-98x4 >= 7.0, < 7.60, >= 8.0.0, < 8.5.8, >= 8.6.0, < 8.6.2 7.60, 8.5.8, 8.6.2
  7. Critical ghsa-jjx7-8462-w4m4 >= 8.0.0, < 8.5.8, >= 8.6.0, < 8.6.2 8.5.8, 8.6.2
  8. High · 7.8 ghsa-gxxj-g9v8-w28p >= 7.0.0, < 7.75, >= 8.0.0, < 8.8.12, >= 8.9.0, < 8.9.10, >= 9.0.0, < 9.0.9 7.75, 8.8.12, 8.9.10, 9.0.9
  9. High · 8.1 ghsa-98h9-727m-44qv >= 7.0.0, < 7.69, >= 8.0.0, < 8.7.11, >= 8.8.0, < 8.8.1 7.69, 8.7.11, 8.8.1
  10. Critical ghsa-7v68-3pr5-h3cr >= 8.0.0, < 8.5.8, >= 8.6.0, < 8.6.2 8.5.8, 8.6.2
  11. Critical ghsa-6mgp-v5cm-ghg5 >= 7.0, < 7.60, >= 8.0.0, < 8.5.8, >= 8.6.0, < 8.6.2 7.60, 8.5.8, 8.6.2
  12. High · 7.5 CVE-2024-11941 >= 8.0.0, < 10.1.8, >= 10.2.0, < 10.2.2 10.1.8, 10.2.2
  13. Critical CVE-2023-5256 >= 8.7.0, < 9.5.11, >= 10.0.0, < 10.0.11, >= 10.1.0, < 10.1.4 9.5.11, 10.0.11, 10.1.4
  14. Critical CVE-2023-31250 >= 8.0.0, < 9.4.14, >= 9.5.0, < 9.5.8, >= 10.0.0, < 10.0.8 9.4.14, 9.5.8, 10.0.8
  15. High · 7.5 CVE-2022-39261 >= 8.0.0, < 9.3.22, >= 9.4.0, < 9.4.7 9.3.22, 9.4.7
  16. High · 7.2 CVE-2022-25277 >= 8.0.0, < 9.3.19, >= 9.4.0, < 9.4.3 9.3.19, 9.4.3
  17. High · 7.5 CVE-2022-25275 >= 8.0.0, < 9.3.19, >= 9.4.0, < 9.4.3 9.3.19, 9.4.3
  18. High · 7.5 CVE-2022-31042 >= 8.0.0, < 9.2.21, >= 9.3.0, < 9.3.16 9.2.21, 9.3.16
  19. High · 8.0 CVE-2022-29248 >= 8.0.0, < 9.2.20, >= 9.3.0, < 9.3.14 9.2.20, 9.3.14
  20. High · 7.5 CVE-2013-6389 >= 7.0, < 7.24 7.24
  21. High CVE-2011-2687 >= 7.0, < 7.3 7.3
  22. High · 7.4 CVE-2016-3164 >= 6.0, < 6.38, >= 7.0, < 7.43, >= 8.0, < 8.0.4, >= 8.0, < 8.0.4, >= 7.0, < 7.43, >= 6.0, < 6.38 6.38, 7.43, 8.0.4
  23. High · 7.5 CVE-2016-3165 >= 6.0, < 6.38, >= 6.0, < 6.38 6.38
  24. High · 8.1 CVE-2016-3169 >= 6.0, < 6.38, >= 7.0, < 7.43, >= 7.0, < 7.43, >= 6.0, < 6.38 6.38, 7.43
  25. High · 7.5 CVE-2016-3163 >= 7.0, < 7.43, >= 6.0, < 6.38, >= 7.0, < 7.43, >= 6.0, < 6.38 7.43, 6.38
  26. High · 7.4 CVE-2016-3167 >= 6.0, < 6.38, >= 6.0, < 6.38 6.38
  27. High · 8.1 CVE-2016-3162 >= 7.0, < 7.43, >= 8.0, < 8.0.4, >= 8.0, < 8.0.4, >= 7.0, < 7.43 7.43, 8.0.4
  28. High · 8.1 CVE-2016-3171 >= 6.0, < 6.38, >= 6.0, < 6.38 6.38
  29. High · 8.8 CVE-2016-6211 >= 7.0, < 7.44, >= 7.0, < 7.44 7.44
  30. High · 7.5 CVE-2016-9450 >= 8.0, < 8.2.3, >= 8.0, < 8.2.3 8.2.3
  31. High · 7.5 CVE-2017-6379 >= 8.2.0, < 8.2.7, >= 8.2.0, < 8.2.7 8.2.7
  32. High CVE-2008-4793 >= 5.0, < 5.11 5.11
  33. Drupal cross-site scripting vulnerability this entry
    Medium · 6.1 CVE-2017-6927 >= 8.4.0, < 8.4.5, >= 7.0, < 7.57, >= 8.4.0, < 8.4.5, >= 7.0, < 7.57 8.4.5, 7.57
  34. High · 8.1 CVE-2017-6926 >= 8.4.0, < 8.4.5, >= 7.0, < 7.57, >= 8.4.0, < 8.4.5, >= 7.0, < 7.57 8.4.5, 7.57
  35. Critical · 9.8 CVE-2017-6920 >= 8.0, < 8.3.4, >= 8.0, < 8.3.4 8.3.4
  36. High · 7.5 CVE-2017-6919 >= 8.0, < 8.2.8, >= 8.3.0, < 8.3.1, >= 8.0, < 8.2.8, >= 8.3.0, < 8.3.1 8.2.8, 8.3.1
  37. High · 8.1 CVE-2017-6930 >= 8.4.0, < 8.4.5, >= 8.4.0, < 8.4.5 8.4.5
  38. Critical · 9.8 CVE-2017-6925 >= 8.0, < 8.3.7, >= 8.0, < 8.3.7 8.3.7
  39. High · 8.1 CVE-2017-6381 >= 8.0, < 8.2.7, >= 8.0, < 8.2.7 8.2.7
  40. High · 7.5 CVE-2017-6377 >= 8.2.0, < 8.2.7, >= 8.2.0, < 8.2.7 8.2.7
  41. High · 7.4 CVE-2017-6924 >= 8.0, < 8.3.7, >= 8.0, < 8.3.7 8.3.7
  42. Critical · 9.8 CVE-2011-2715 = 6.20 no fix
  43. High · 7.5 CVE-2022-25273 >= 8.0.0, < 9.2.18, >= 9.3.0, < 9.3.12 9.2.18, 9.3.12
  44. High · 8.1 CVE-2016-5385 >= 8.0, < 8.1.7 8.1.7
  45. High · 7.5 CVE-2022-24775 >= 8.0.0, < 9.2.16, >= 9.3.0, < 9.3.9 9.2.16, 9.3.9
  46. High · 7.5 CVE-2022-25271 >= 8.0.0, < 9.2.13, >= 9.3.0, < 9.3.6 9.2.13, 9.3.6
  47. High · 7.5 CVE-2020-13677 >= 8.0.0, < 8.9.19, >= 9.1.0, < 9.1.13, >= 9.2.0, < 9.2.6 8.9.19, 9.1.13, 9.2.6
  48. Critical · 9.8 CVE-2020-13675 >= 8.0.0, < 8.9.19, >= 9.1.0, < 9.1.13, >= 9.2.0, < 9.2.6 8.9.19, 9.1.13, 9.2.6
  49. High · 7.1 CVE-2021-32610 >= 8.0.0, < 8.9.17, >= 9.1.0, < 9.1.11, >= 9.2.0, < 9.2.2 8.9.17, 9.1.11, 9.2.2
  50. High · 7.8 CVE-2020-28948 >= 8.0.0, < 8.8.12, >= 8.9.0, < 8.9.10, >= 9.0.0, < 9.0.9 8.8.12, 8.9.10, 9.0.9
  51. High · 8.8 Exploited in attacks CVE-2020-13671 >= 8.0.0, < 8.8.11, >= 8.9.0, < 8.9.9, >= 9.0.0, < 9.0.8 8.8.11, 8.9.9, 9.0.8
  52. High · 7.5 CVE-2020-13670 >= 8.0.0, < 8.8.10, >= 8.9.0, < 8.9.6, >= 9.0.0, < 9.0.6 8.8.10, 8.9.6, 9.0.6
  53. Critical · 9.8 CVE-2020-13665 >= 8.0.0, < 8.8.8, >= 8.9.0, < 8.9.1, >= 9.0.0, < 9.0.1 8.8.8, 8.9.1, 9.0.1
  54. High · 8.8 CVE-2020-13664 >= 8.0.0, < 8.8.8, >= 8.9.0, < 8.9.1, >= 9.0.0, < 9.0.1 8.8.8, 8.9.1, 9.0.1
  55. High · 8.8 CVE-2020-13663 >= 8.0.0, < 8.8.8, >= 8.9.0, < 8.9.1, >= 9.0.0, < 9.0.1 8.8.8, 8.9.1, 9.0.1
  56. Critical · 9.8 CVE-2019-6342 >= 8.7.4, < 8.7.5 8.7.5
  57. Critical · 9.8 CVE-2019-11831 >= 8.0.0, < 8.6.16, >= 8.7.0, < 8.7.1 8.6.16, 8.7.1
  58. High · 8.1 Exploited in attacks CVE-2019-6340 >= 8.0.0, < 8.5.11, >= 8.6.0, < 8.6.10 8.5.11, 8.6.10
  59. Critical · 9.8 CVE-2019-6339 >= 8.0.0, < 8.5.9, >= 8.6.0, < 8.6.6 8.5.9, 8.6.6
  60. High · 8.0 CVE-2019-6338 >= 8.0.0, < 8.5.9, >= 8.6.0, < 8.6.6 8.5.9, 8.6.6
  61. Critical · 9.8 Exploited in attacks CVE-2018-7602 >= 7.0, < 7.59, >= 8.0, < 8.4.8, >= 8.5, < 8.5.3, >= 7.0, < 7.59, >= 8.0, < 8.4.8, >= 8.5, < 8.5.3 7.59, 8.4.8, 8.5.3
  62. Critical · 9.8 Exploited in attacks CVE-2018-7600 >= 7.0, < 7.58, >= 8.0, < 8.3.9, >= 8.4.0, < 8.4.6, >= 8.5.0, < 8.5.1, >= 7.0, < 7.58, >= 8.0, < 8.3.9, >= 8.4, < 8.4.6, >= 8.5, < 8.5.1 7.58, 8.3.9, 8.4.6, 8.5.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.