CVE-2022-0950: Cross-site Scripting in ShowDoc
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.49989%
CWE
Published
3/16/2022
Updated
1/27/2023
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 |
---|---|---|---|
showdoc/showdoc | composer | < 2.10.4 | 2.10.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from using a blacklist (isDangerFilename
) instead of a whitelist for file validation. The patch replaced all instances of isDangerFilename
with isAllowedFilename
(whitelist
) and added explicit error messages. The vulnerable functions directly handled file upload validation using the insecure blacklist method, allowing .html
files that enable stored XSS when executed.