CVE-2022-1091
PHP vulnerability analysis and mitigation

Overview

CVE-2022-1091 is a security vulnerability discovered in the Safe SVG WordPress plugin versions before 1.9.10. The vulnerability was disclosed on March 25, 2022. The issue affects the plugin's sanitization mechanism for SVG file uploads, which is designed to prevent malicious file uploads (WPScan).

Technical details

The vulnerability exists in the sanitization step of the Safe SVG plugin, where the content-type verification can be bypassed by spoofing the content-type in the POST request during file upload. The plugin relies on the Content-Type from the original form-data request instead of properly validating the actual file type, allowing attackers to circumvent the security checks (GitHub PR).

Impact

If exploited, this vulnerability allows attackers to bypass the SVG sanitization process, potentially enabling various attacks that the plugin was designed to prevent. The primary risk is Cross-Site Scripting (XSS), but depending on how the uploaded SVG files are used, other XML-based attacks might also be possible (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in Safe SVG version 1.9.10. The fix implements better file type checking by utilizing WordPress's core wpcheckfiletypeandext function instead of relying on the Content-Type from the request. Users are advised to update to version 1.9.10 or later to protect against this vulnerability (GitHub PR).

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