CVE-2023-36259: Craft CMS Audit Plugin Cross Site Scripting vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2615%
CWE
Published
1/30/2024
Updated
2/5/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 |
|---|---|---|---|
| superbig/craft-audit | composer | < 3.0.2 | 3.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized user input in title handling during element saving. The pre-patch code shows direct assignment of $title to model->title and snapshot['title'] without encoding. The fix adds Html::encode() to both assignments, confirming these were the vulnerable points. As this matches the CWE-79 pattern of improper input neutralization during web page generation, and the commit explicitly addresses XSS in titles, we can conclusively identify these assignments in onSaveElement as vulnerable.