CVE-2022-0967: Stored Cross-site Scripting in showdoc
6.9
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.73596%
CWE
Published
3/16/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:P/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
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 stems from the inclusion of .ofd in the allowed file extensions (via isAllowedFilename
), which the upload()
function did not block. The patch removed .ofd from the whitelist and added stricter validation. Both functions directly contributed to the vulnerability: isAllowedFilename
by permitting the dangerous type, and upload()
by processing the file without additional safeguards.