CVE-2022-0346
WordPress vulnerability analysis and mitigation

Overview

The XML Sitemap Generator for Google WordPress plugin versions prior to 2.0.4 contains a security vulnerability identified as CVE-2022-0346. The vulnerability was discovered by Krzysztof Zając and was publicly disclosed on May 2, 2022. This security issue affects the WordPress plugin 'www-xml-sitemap-generator-org' and involves improper parameter validation (WPScan).

Technical details

The vulnerability is classified as a Cross-Site Scripting (XSS) issue with a CVSS score of 6.1 (Medium). It is categorized under CWE-79 and falls into the OWASP Top 10 category A7: Cross-Site Scripting (XSS). The core issue stems from the plugin's failure to properly validate a parameter that can be set to arbitrary values. This vulnerability can manifest either as an XSS attack through error messages or potentially as Remote Code Execution (RCE) if the PHP setting 'allow_url_include' is enabled (WPScan).

Impact

The vulnerability can be exploited to execute cross-site scripting attacks via error messages. In more severe scenarios, if the PHP configuration has 'allow_url_include' enabled, it could potentially lead to remote code execution, allowing attackers to execute arbitrary PHP code on the affected system (WPScan).

Exploitability

Proof of concept exploits have been documented for both the XSS and potential RCE scenarios. The XSS can be triggered through a specially crafted URL using the 'xsg-provider' parameter, while the RCE exploit (requiring allow_url_include to be enabled) can be executed through a malicious data URL (WPScan).

Mitigation and workarounds

The vulnerability has been patched in version 2.0.4 of the XML Sitemap Generator for Google WordPress plugin. Users are advised to update to this version or later to mitigate the security risk (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-13784CRITICAL9.8
  • arforms-form-builder
NoYesAug 16, 2026
CVE-2026-17087HIGH7.5
  • wp-travel-engine
NoYesAug 16, 2026
CVE-2026-2497HIGH7.2
  • gallery-plugin
NoYesAug 16, 2026
CVE-2026-17608MEDIUM6.5
  • wp-compress-image-optimizer
NoYesAug 16, 2026
CVE-2026-2357MEDIUM6.4
  • bold-page-builder
NoYesAug 16, 2026

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