CVE-2022-0956:
Cross-site Scripting in ShowDoc
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54487%
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 commit diff shows the removal of '.md' from the allowed file extensions in the isAllowedFilename
function. Since Markdown files can contain HTML
/JavaScript
when rendered, allowing .md uploads without proper sanitization creates a stored XSS vector. The direct modification to the allowlist in this function indicates it was the primary vulnerability point.