CVE-2020-19626: Craft CMS Cross-site Scripting Vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.46023%
CWE
Published
5/24/2022
Updated
2/1/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| craftcms/cms | composer | < 3.1.33 | 3.1.33 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper output encoding in the Craft CMS admin interface. The commit 76a2168 explicitly shows the addition of the |e (escape) filter to the site.name variable in the _edit.html template. This indicates that the unescaped rendering of site.name in vulnerable versions allowed injection of arbitrary HTML/scripts. As the XSS occurs via user-controlled input in the site creation form (admin/settings/sites/new) and the fix was purely template-level output encoding, the vulnerable code path is clearly identified in this template file.