CVE-2021-30134: php-mod/curl allows Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9328%
CWE
Published
12/26/2022
Updated
4/3/2023
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 |
|---|---|---|---|
| php-mod/curl | composer | < 2.3.2 | 2.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two test endpoints that reflect user input without proper Content-Type headers. In post_file_path_upload.php, JSON output lacked application/json headers, allowing XSS via JSON/HTML confusion. In post_multidimensional.php, raw POST data was echoed back without text/plain headers, enabling direct script execution. The commit fixed these by adding proper headers, confirming the XSS vector was browser response type misinterpretation combined with unescaped output.