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-2025-11830 Overview
CVE-2025-11830 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Restaurant Listings plugin for WordPress. The flaw resides in the align parameter of the restaurant_summary shortcode and affects all versions up to and including 1.0.2. Insufficient input sanitization and output escaping allow authenticated users with Contributor-level access or higher to inject arbitrary JavaScript. The injected payload executes in the browser of any user who views the affected page. The vulnerability maps to [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Contributor-level attackers can store JavaScript in rendered pages, enabling session theft, administrative action hijacking, and redirection of site visitors.
Affected Products
- WP Restaurant Listings plugin for WordPress — all versions up to and including 1.0.2
- WordPress sites exposing the restaurant_summary shortcode to contributor-level authors
- Any WordPress deployment granting untrusted users Contributor privileges or above
Discovery Timeline
- 2025-10-22 - CVE-2025-11830 published to the National Vulnerability Database (NVD)
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2025-11830
Vulnerability Analysis
The WP Restaurant Listings plugin registers a restaurant_summary shortcode that accepts an align attribute. The shortcode handler writes the attribute value into rendered HTML without sufficient sanitization or escaping. An authenticated user who can create or edit posts inserts a crafted shortcode containing JavaScript inside the align parameter. When the page is rendered, the browser parses the injected markup and executes the attacker's script in the context of the viewing user's session.
Because the payload is persisted in post content, the attack is stored rather than reflected. Any visitor who loads the page triggers execution, including administrators. This expands impact beyond the attacker's own account to any privileged user who browses the compromised content.
Root Cause
The root cause is missing output escaping in the shortcode rendering path at includes/class-wp-restaurant-listings-shortcodes.php around line 511. WordPress provides escaping helpers such as esc_attr() and esc_html() to neutralize HTML control characters, but the vulnerable code places the align value directly into the output. The absence of a sanitization callback on the shortcode attribute allows arbitrary characters, including quotes and angle brackets, to break out of the intended attribute context.
Attack Vector
Exploitation requires network access to the WordPress site and an authenticated account with Contributor privileges or higher. The attacker creates or edits a post containing the restaurant_summary shortcode with a malicious align value. No user interaction beyond browsing the published page is required for the payload to execute. The scope is Changed because script execution occurs in the browser trust boundary of other users, including administrators.
See the WordPress Plugin Shortcode Code and the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-11830
Indicators of Compromise
- Posts or pages containing [restaurant_summary] shortcodes with align attributes that include <script>, onerror, onload, or javascript: strings
- Unexpected outbound requests from administrator browsers to attacker-controlled domains following page views
- New or modified administrator accounts created shortly after a Contributor publishes or edits restaurant content
Detection Strategies
- Query the wp_posts table for post content matching restaurant_summary combined with suspicious characters in the align attribute
- Deploy a web application firewall rule that inspects POST bodies to wp-admin/post.php for script tags inside shortcode attributes
- Review audit logs for Contributor accounts that recently edited published content containing the vulnerable shortcode
Monitoring Recommendations
- Enable WordPress activity logging for post creation and edits by non-administrator roles
- Monitor Content Security Policy (CSP) violation reports for inline script execution on restaurant listing pages
- Alert on anomalous session activity from administrator accounts after they view contributor-authored content
How to Mitigate CVE-2025-11830
Immediate Actions Required
- Audit all Contributor and higher accounts and revoke access that is not required
- Scan existing posts for the restaurant_summary shortcode and inspect align values for injected markup
- Restrict the use of the WP Restaurant Listings plugin until a vendor-released patch is applied
Patch Information
At the time of publication, no fixed version beyond 1.0.2 is listed in the available advisory data. Site operators should monitor the Wordfence Vulnerability Report and the WordPress plugin repository for an updated release that adds esc_attr() to the align output.
Workarounds
- Deactivate the WP Restaurant Listings plugin on sites that do not require it
- Remove Contributor and Author privileges from untrusted users until a patch is available
- Deploy a WAF rule that blocks shortcode attributes containing <, >, or javascript: substrings
- Enforce a strict Content Security Policy that disallows inline script execution on front-end pages
# Example wp-cli audit for the vulnerable shortcode
wp db query "SELECT ID, post_title FROM wp_posts \
WHERE post_content LIKE '%[restaurant_summary%' \
AND (post_content LIKE '%<script%' \
OR post_content LIKE '%onerror=%' \
OR post_content LIKE '%javascript:%');"
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

