Skip to main content
Vulnerability Database/CVE-2026-93549

CVE-2026-93549: CoCart WordPress Plugin CSRF Vulnerability

CVE-2026-93549 is a cross-site request forgery flaw in CoCart WordPress plugin that disables REST nonce protection, enabling attackers to create administrator accounts. This post covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-93549 Overview

CVE-2026-93549 affects the CoCart WordPress plugin in versions prior to 4.9.7. The plugin registers a REST API authentication filter that is not scoped to its own endpoints. As a result, it disables WordPress core's REST nonce protection across every registered route. An attacker can exploit this flaw through a cross-site request forgery (CSRF) attack that abuses an authenticated administrator's session to create a new administrator account. The weakness is categorized under CWE-352: Cross-Site Request Forgery.

Critical Impact

A single victim click by a logged-in administrator can grant an external attacker persistent administrator access to the WordPress site.

Affected Products

  • CoCart WordPress plugin versions prior to 4.9.7
  • WordPress sites running CoCart with an authenticated administrator session
  • Any WordPress REST API routes relying on nonce validation while CoCart is active

Discovery Timeline

  • 2026-10-04 - CVE-2026-93549 published to the National Vulnerability Database (NVD)
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-93549

Vulnerability Analysis

The CoCart plugin hooks into the WordPress REST API authentication pipeline using the rest_authentication_errors filter. This filter is global and applies to every REST route served by the site. CoCart's handler returns a value that short-circuits the nonce verification performed by WordPress core, including for routes outside the CoCart namespace.

With nonce validation disabled, a remote attacker can craft an HTML page that issues a cross-origin request against the target site. When an authenticated administrator visits the attacker-controlled page, the browser transmits session cookies with the forged request. The site processes the request as if the administrator initiated it.

The practical consequence is administrator account creation through the wp/v2/users REST endpoint. The attacker gains persistent control over the WordPress instance and all content, themes, plugins, and connected services.

Root Cause

The root cause is improper scoping of the REST authentication filter. CoCart's filter callback should return null when the request targets routes outside its own namespace, allowing WordPress core to run its default nonce check. Instead, the plugin returns a non-null value for every REST request, which core interprets as "authentication already handled" and skips subsequent nonce validation.

Attack Vector

The attack requires an authenticated administrator to visit a malicious or compromised web page while logged in to the affected WordPress site. The attacker-controlled page submits a cross-origin POST request to the /wp-json/wp/v2/users endpoint with parameters that create a new user with the administrator role. Because nonce protection is disabled by the vulnerable plugin, the request succeeds without a valid X-WP-Nonce header.

The technical details of the filter misuse are documented in the WPScan Vulnerability Report.

Detection Methods for CVE-2026-93549

Indicators of Compromise

  • Unexpected user accounts with the administrator role appearing in wp_users and wp_usermeta tables
  • POST requests to /wp-json/wp/v2/users from external referrers without a valid X-WP-Nonce header
  • Access log entries showing REST API user creation shortly after an administrator browsed external sites
  • CoCart plugin versions below 4.9.7 reported by site inventory scans

Detection Strategies

  • Audit the WordPress users table for recently created administrators and correlate against known provisioning activity
  • Monitor web server access logs for POST /wp-json/wp/v2/users requests and flag any lacking expected nonce headers or originating from unknown referrers
  • Deploy a web application firewall rule that inspects REST user-creation requests for missing or invalid nonces

Monitoring Recommendations

  • Forward WordPress audit logs and web server access logs to a centralized analytics platform for correlation
  • Alert on new user registrations assigned elevated roles outside of change windows
  • Track plugin inventory for CoCart installations and flag versions below 4.9.7 for remediation

How to Mitigate CVE-2026-93549

Immediate Actions Required

  • Update the CoCart plugin to version 4.9.7 or later on all affected WordPress installations
  • Review the WordPress users table and remove any unauthorized administrator accounts
  • Rotate credentials and application passwords for all legitimate administrators
  • Invalidate active sessions by changing the WordPress secret keys in wp-config.php

Patch Information

Upgrade CoCart to version 4.9.7, which scopes the REST authentication filter to the plugin's own endpoints and restores core nonce validation for all other routes. Refer to the WPScan Vulnerability Report for vendor fix details.

Workarounds

  • Deactivate the CoCart plugin until the update to 4.9.7 can be applied
  • Restrict access to /wp-json/wp/v2/users at the web server or WAF layer, allowing only trusted IP ranges
  • Require administrators to use isolated browser profiles when managing the WordPress site to reduce CSRF exposure
bash
# Nginx example restricting REST user management to trusted IPs
location = /wp-json/wp/v2/users {
    allow 203.0.113.0/24;
    deny all;
    try_files $uri $uri/ /index.php?$args;
}

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.