Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58804

CVE-2025-58804: WooCommerce Single Page Checkout CSRF Flaw

CVE-2025-58804 is a Cross-Site Request Forgery vulnerability in WooCommerce Single Page Checkout plugin that allows attackers to execute unauthorized actions. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2025-58804 Overview

CVE-2025-58804 is a Cross-Site Request Forgery (CSRF) vulnerability affecting the WooCommerce Single Page Checkout plugin (woo-single-page-checkout) developed by brijrajs. The flaw affects all plugin versions up to and including 1.2.7. An attacker can craft a malicious web page that triggers unauthorized state-changing requests when an authenticated WordPress user visits it. The vulnerability is tracked under CWE-352: Cross-Site Request Forgery and requires user interaction to succeed. Exploitation occurs over the network without prior authentication by the attacker.

Critical Impact

An attacker can trick authenticated WordPress administrators or users into performing unintended actions on the vulnerable plugin, resulting in limited integrity impact on affected WooCommerce configurations.

Affected Products

  • brijrajs WooCommerce Single Page Checkout plugin (woo-single-page-checkout)
  • All plugin versions from initial release through 1.2.7
  • WordPress sites running WooCommerce with the affected plugin installed

Discovery Timeline

  • 2025-09-05 - CVE-2025-58804 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-58804

Vulnerability Analysis

The vulnerability stems from missing or insufficient CSRF protection in request handlers exposed by the WooCommerce Single Page Checkout plugin. WordPress plugins are expected to validate nonce tokens on state-changing requests using functions such as wp_verify_nonce() or check_admin_referer(). When these checks are absent or improperly implemented, an attacker-controlled page can issue forged requests that the victim's browser submits with valid authentication cookies. The impact scope is limited to integrity, with no direct confidentiality or availability consequences reported. Successful exploitation requires the victim to click a link or load attacker-controlled content while authenticated to the target WordPress site.

Root Cause

The root cause is the absence of anti-CSRF token validation on one or more plugin endpoints that accept state-changing operations. Without a properly scoped nonce tied to the user session and action, the plugin cannot distinguish between legitimate browser-originated requests and those forged by a third-party site. This maps to CWE-352.

Attack Vector

An attacker hosts a page containing a hidden form or JavaScript that auto-submits a POST request to the vulnerable plugin endpoint. When a WordPress user with an active session visits the attacker's page, the browser attaches the session cookies and executes the request. Because the plugin does not verify a nonce, the request is processed as if the user initiated it. Details are documented in the Patchstack CSRF Vulnerability Advisory.

Detection Methods for CVE-2025-58804

Indicators of Compromise

  • Unexpected changes to WooCommerce Single Page Checkout plugin configuration or settings without a corresponding admin audit trail entry.
  • HTTP POST requests to plugin endpoints with Referer headers pointing to external, untrusted domains.
  • Web server access logs showing state-changing requests to plugin URLs without preceding navigation from the WordPress admin dashboard.

Detection Strategies

  • Review web server and WordPress access logs for requests to woo-single-page-checkout endpoints that originate from cross-origin referers.
  • Enable WordPress audit logging plugins to record administrative configuration changes and correlate them with user session activity.
  • Deploy a web application firewall (WAF) rule set that flags requests missing valid nonce parameters on plugin admin endpoints.

Monitoring Recommendations

  • Monitor for anomalous POST activity to /wp-admin/admin-ajax.php and /wp-admin/admin-post.php targeting the vulnerable plugin.
  • Alert on WordPress option changes tied to the plugin using database-level auditing.
  • Track outbound clicks from admin users to untrusted domains that could serve as CSRF launch pages.

How to Mitigate CVE-2025-58804

Immediate Actions Required

  • Identify all WordPress sites with the woo-single-page-checkout plugin installed and inventory installed versions.
  • Disable the plugin on affected sites until a patched release is confirmed available and applied.
  • Instruct WordPress administrators to log out of active sessions before browsing untrusted content.

Patch Information

At the time of NVD publication, the advisory lists all versions through 1.2.7 as affected. Site operators should consult the Patchstack CSRF Vulnerability Advisory for updates on a fixed release from the plugin maintainer and apply the update through the WordPress plugin update mechanism as soon as it becomes available.

Workarounds

  • Deploy a WAF rule that requires a valid _wpnonce parameter on POST requests to plugin endpoints.
  • Restrict WordPress admin panel access by IP address to limit exposure of authenticated sessions.
  • Enforce short session lifetimes and require re-authentication for sensitive administrative actions.
  • Use browser isolation or dedicated admin browsers to reduce the chance of visiting attacker-controlled pages during authenticated sessions.
bash
# Example WAF rule concept: block plugin POST requests missing a nonce parameter
# (adapt to your WAF syntax; illustrative only)
SecRule REQUEST_METHOD "@streq POST" \
  "chain,phase:2,deny,status:403,id:1058804,msg:'Missing WP nonce on woo-single-page-checkout endpoint'"
  SecRule REQUEST_URI "@contains woo-single-page-checkout" \
    "chain"
    SecRule &ARGS:_wpnonce "@eq 0"

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.