CVE-2020-13688: Drupal Core Cross-site scripting vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6087%
CWE
Published
5/24/2022
Updated
4/23/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| drupal/core | composer | >= 8.8.0, < 8.8.10 | 8.8.10 |
| drupal/core | composer | >= 8.9.0, < 8.9.6 | 8.9.6 |
| drupal/core | composer | >= 9.0.0, < 9.0.6 | 9.0.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper output escaping in form element processing. Drupal's Textfield form element processes the #pattern attribute through processPattern() method, which in vulnerable versions did not apply proper HTML escaping. This allowed attackers to inject arbitrary JavaScript via the pattern attribute. The security advisory SA-CORE-2020-009 specifically addresses XSS in form rendering, and historical patch analysis shows escaping was added to Textfield::processPattern in the fixed versions.