CVE-2022-0940
PHP vulnerability analysis and mitigation

Overview

A Stored Cross-Site Scripting (XSS) vulnerability was identified in the GitHub repository star7th/showdoc versions prior to v2.10.4. The vulnerability was discovered and assigned CVE-2022-0940 on March 13, 2022 (CVE Details).

Technical details

The vulnerability is classified as CWE-79 (Cross-site Scripting) and involves unrestricted file upload functionality in the application. The issue was related to insufficient file extension validation in the AttachmentModel.class.php file, which was later patched by adding additional file extension restrictions (GitHub Commit).

Impact

The vulnerability allows attackers to perform stored cross-site scripting attacks through unrestricted file uploads, potentially leading to the execution of malicious scripts in users' browsers in the context of the vulnerable application (CVE Details).

Mitigation and workarounds

The vulnerability was patched in version 2.10.4 of showdoc. The fix involves enhanced file extension validation in the AttachmentModel.class.php file to prevent dangerous file uploads. Users are advised to upgrade to version 2.10.4 or later (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management