Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-0346

CVE-2022-0346: XML Sitemap Generator RCE Vulnerability

CVE-2022-0346 is a remote code execution vulnerability in XML Sitemap Generator for Google WordPress plugin that enables attackers to execute arbitrary code when allow_url_include is enabled. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published: February 11, 2026

CVE-2022-0346 Overview

CVE-2022-0346 is a Cross-Site Scripting (XSS) vulnerability with potential Remote Code Execution (RCE) impact affecting the XML Sitemap Generator for Google WordPress plugin. The vulnerability exists in versions prior to 2.0.4 due to improper validation of a parameter that can be set to an arbitrary value. This leads to XSS via error message rendering, and under specific server configurations where allow_url_include is enabled, the vulnerability can be escalated to achieve Remote Code Execution.

Critical Impact

Attackers can inject malicious scripts into WordPress sites using this plugin, potentially stealing user credentials, session tokens, or administrative access. If the PHP allow_url_include directive is enabled, attackers may achieve full Remote Code Execution on the web server.

Affected Products

  • XML Sitemap Generator for Google WordPress plugin versions prior to 2.0.4
  • WordPress installations with the vulnerable plugin installed
  • Sites with allow_url_include enabled are at elevated risk for RCE

Discovery Timeline

  • 2022-05-23 - CVE CVE-2022-0346 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0346

Vulnerability Analysis

This vulnerability stems from insufficient input validation in the XML Sitemap Generator for Google WordPress plugin. The plugin fails to properly sanitize a user-controllable parameter before including it in error messages or processing it in a manner that can lead to code execution.

The attack requires user interaction where a victim must click a malicious link or visit a crafted page. The scope is changed, meaning the vulnerability in the plugin can impact resources beyond its security scope, potentially affecting the entire WordPress installation. Successful exploitation compromises both confidentiality and integrity of the affected system.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. However, the potential for RCE when allow_url_include is enabled significantly elevates the risk profile of this vulnerability.

Root Cause

The root cause is the absence of proper input validation and sanitization for a parameter processed by the plugin. The parameter value is reflected in error messages without appropriate encoding or escaping, enabling script injection. Additionally, when PHP's allow_url_include configuration directive is enabled on the server, the unsanitized parameter can be leveraged to include remote files, resulting in arbitrary code execution.

Attack Vector

The attack is network-based and requires the attacker to craft a malicious request containing JavaScript payload or, in the case of RCE, a URL pointing to attacker-controlled PHP code. The exploitation path follows these steps:

  1. The attacker identifies a WordPress site running a vulnerable version of XML Sitemap Generator for Google plugin
  2. A malicious URL is crafted containing the payload in the vulnerable parameter
  3. The victim (typically an administrator) is tricked into clicking the malicious link
  4. For XSS: The payload executes in the victim's browser context, potentially stealing session cookies or performing actions as the authenticated user
  5. For RCE: If allow_url_include is enabled, the attacker's remote PHP file is included and executed on the server

The vulnerability mechanism involves improper parameter handling that allows arbitrary values to be processed by the plugin. When an invalid or malicious value is provided, the error handling routine reflects this value back to the user without proper sanitization. For detailed technical information about exploitation scenarios, refer to the WPScan Vulnerability Report.

Detection Methods for CVE-2022-0346

Indicators of Compromise

  • Unusual JavaScript execution or unexpected redirects originating from the XML Sitemap Generator plugin pages
  • Web server access logs showing requests with encoded script tags or PHP wrappers in URL parameters targeting sitemap-related endpoints
  • Error logs showing attempts to include remote URLs via the allow_url_include functionality
  • Unauthorized modifications to WordPress content or user accounts following administrative access to the site

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block XSS payload patterns in requests to WordPress plugin endpoints
  • Monitor for requests containing <script>, javascript:, or PHP stream wrappers (php://, http://, data://) in URL parameters
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious PHP process spawning or network connections from the web server
  • Configure intrusion detection systems (IDS) to alert on common XSS and RFI attack signatures targeting WordPress installations

Monitoring Recommendations

  • Enable verbose WordPress logging and regularly review logs for suspicious parameter values in plugin-related requests
  • Monitor for changes to WordPress core files, plugin files, and database entries that could indicate compromise
  • Implement real-time alerting for failed login attempts or administrative actions following potential XSS exploitation
  • Track outbound network connections from the web server to detect potential data exfiltration or command-and-control communication

How to Mitigate CVE-2022-0346

Immediate Actions Required

  • Update the XML Sitemap Generator for Google plugin to version 2.0.4 or later immediately
  • Audit WordPress user accounts and sessions for unauthorized access or privilege modifications
  • Review server configuration and ensure allow_url_include is disabled in php.ini to prevent RCE escalation
  • Implement Content Security Policy (CSP) headers to mitigate the impact of XSS vulnerabilities

Patch Information

The vulnerability has been addressed in version 2.0.4 of the XML Sitemap Generator for Google plugin. Administrators should update to this version or later through the WordPress plugin management interface or by manually downloading the updated version from the official WordPress plugin repository. After updating, verify the plugin version in the WordPress admin panel under Plugins to confirm the fix has been applied.

Workarounds

  • If immediate patching is not possible, consider temporarily deactivating the XML Sitemap Generator for Google plugin until the update can be applied
  • Ensure PHP's allow_url_include directive is set to Off in the server's php.ini configuration to prevent RCE exploitation
  • Implement strict input validation at the web server or WAF level to filter potentially malicious parameters
  • Restrict administrative access to the WordPress backend via IP whitelisting or VPN requirements to reduce the attack surface
bash
# Configuration example
# Disable allow_url_include in php.ini to prevent RCE escalation
# Edit php.ini and ensure the following setting:
allow_url_include = Off

# Restart web server to apply changes
# For Apache:
sudo systemctl restart apache2

# For Nginx with PHP-FPM:
sudo systemctl restart php-fpm

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechXmlsitemapgenerator

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability6.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WPScan Vulnerability Report
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English