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

CVE-2026-96568: WordPress Restaurant Menu Plugin XSS Flaw

CVE-2026-96568 is a stored cross-site scripting vulnerability in the Restaurant Menu and Food Ordering plugin for WordPress that lets unauthenticated attackers inject malicious scripts. This article 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-96568 Overview

CVE-2026-96568 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the Restaurant Menu and Food Ordering plugin for WordPress [CWE-79]. The flaw resides in the handling of the phone_number parameter across order and purchase processing code paths. All plugin versions up to and including 2.4.14 fail to properly sanitize input or escape output. Unauthenticated attackers can inject arbitrary web scripts that execute whenever a user visits an affected page. The payload persists in the WordPress database, enabling repeated execution against administrators and customers who load the order views.

Critical Impact

Unauthenticated attackers can store malicious JavaScript through the plugin's phone number field, hijack administrator sessions, and pivot to further compromise of the WordPress site.

Affected Products

  • Restaurant Menu and Food Ordering plugin for WordPress (mp-restaurant-menu)
  • All versions up to and including 2.4.14
  • WordPress sites exposing order submission forms processed by class-order.php and class-purchase.php

Discovery Timeline

  • 2026-09-25 - CVE-2026-96568 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-96568

Vulnerability Analysis

The vulnerability is a stored XSS flaw in the Restaurant Menu and Food Ordering plugin for WordPress. The affected code paths live in classes/models/shop/class-order.php at lines 465, 725, 727, and 1497, and in classes/models/shop/class-purchase.php at line 494. These locations handle the phone_number field submitted during order creation and later render it when displaying order details. Because the stored value is not escaped when rendered, an attacker-controlled script executes in the browser context of any user who loads the affected page.

Stored XSS in a WordPress administrative view typically enables session theft, administrative action forgery, and silent plugin or user manipulation. The attack requires no authentication, and the submitted value is stored server-side, so a single request can seed persistent payloads across the site.

Root Cause

The root cause is insufficient input sanitization on submission and missing output escaping on render. The plugin treats the phone_number parameter as trusted free-form text rather than applying sanitize_text_field() on input and esc_html() or esc_attr() on output. HTML and JavaScript control characters are preserved verbatim, so attacker markup is reflected into the generated DOM.

Attack Vector

An unauthenticated attacker submits a crafted order through the public ordering form and supplies a JavaScript payload in the phone_number field. The malicious value is stored in the plugin's order records. When a site administrator or any user accesses a page that renders this value, the browser parses the injected markup and executes the script in the site's origin. The scope changes to other components, which allows actions such as reading the current session cookie, invoking authenticated REST endpoints, or redirecting the victim to attacker infrastructure.

No authenticated exploitation code is required beyond submission of a normal-looking order containing script content in the phone number field. Technical details on the affected code lines are available in the Wordfence Vulnerability Report.

Detection Methods for CVE-2026-96568

Indicators of Compromise

  • Order records in the mp-restaurant-menu database tables containing <script>, onerror=, onload=, or javascript: substrings in the phone_number field.
  • Outbound HTTP requests from administrator browser sessions to unexpected domains shortly after viewing orders.
  • New or modified WordPress administrator accounts created without a corresponding legitimate admin login.
  • Unexpected plugin or theme file changes following views of the order management screen.

Detection Strategies

  • Query stored orders for HTML or JavaScript markup within fields that should only contain phone number characters.
  • Review WordPress access logs for POST requests to order submission endpoints originating from unauthenticated IP addresses with abnormal payload sizes.
  • Enable a Content Security Policy in report-only mode to surface inline script execution on administrative pages.

Monitoring Recommendations

  • Monitor WordPress audit logs for administrative actions executed immediately after order pages are loaded.
  • Alert on creation of new administrator accounts or changes to user roles that do not correlate with known admin activity.
  • Track egress traffic from browsers used to administer WordPress for connections to newly registered or low-reputation domains.

How to Mitigate CVE-2026-96568

Immediate Actions Required

  • Update the Restaurant Menu and Food Ordering plugin to the version released in the vendor fix referenced in the plugin changeset.
  • Audit existing order records for stored script payloads and purge or sanitize any malicious entries.
  • Rotate administrator session cookies and reset credentials for any account that may have viewed a tampered order.

Patch Information

The vendor committed a fix in the plugin's source repository. Review the plugin changeset and upgrade from version 2.4.14 or earlier to the patched release. Additional technical references are available in the Wordfence advisory.

Workarounds

  • Deactivate the Restaurant Menu and Food Ordering plugin until the patched version is installed.
  • Deploy a Web Application Firewall rule that blocks HTML tags and JavaScript event handlers in the phone_number POST parameter.
  • Enforce a strict Content Security Policy on WordPress admin pages to prevent execution of inline scripts.
bash
# Example WAF rule: block script-like content in phone_number parameter
SecRule ARGS:phone_number "@rx (?i)(<script|onerror=|onload=|javascript:)" \
    "id:1026965680,\
     phase:2,\
     deny,\
     status:403,\
     msg:'CVE-2026-96568 - XSS attempt in mp-restaurant-menu phone_number'"

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.