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

CVE-2026-96570: WordPress Schema Plugin XSS Vulnerability

CVE-2026-96570 is a stored XSS flaw in the Schema & Structured Data for WP & AMP plugin for WordPress that lets unauthenticated attackers inject malicious scripts. This article covers technical details, affected versions, and mitigation strategies.

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-96570 Overview

The Schema & Structured Data for WP & AMP plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability in the saswp_review_text parameter. All versions up to and including 1.67 fail to properly sanitize input and escape output when processing review submissions. Unauthenticated attackers can inject arbitrary JavaScript that executes in the browser of any visitor who views an affected page. The nonce intended as an authorization gate is publicly rendered inside the [saswp-reviews-form] shortcode HTML, so any anonymous visitor can obtain it, eliminating its value as an access control.

Critical Impact

Unauthenticated stored XSS allows persistent script injection on WordPress sites running the plugin, enabling session hijacking, credential theft, and redirection attacks against site visitors and administrators.

Affected Products

  • Schema & Structured Data for WP & AMP WordPress plugin
  • All versions up to and including 1.67
  • Sites exposing the [saswp-reviews-form] shortcode

Discovery Timeline

  • 2026-10-16 - CVE-2026-96570 published to the National Vulnerability Database
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-96570

Vulnerability Analysis

The flaw is a stored Cross-Site Scripting weakness classified under [CWE-79]. The plugin accepts user-supplied review content through the saswp_review_text parameter and persists it without adequate sanitization. When the stored review is later rendered on a page, the payload is emitted without proper output escaping, allowing arbitrary scripts to run in the context of the site.

Because the vulnerable endpoint is reachable through the public [saswp-reviews-form] shortcode, exploitation does not require authentication. Any script delivered this way executes with the privileges of the viewing user, including administrators who may review submitted content from the WordPress dashboard. This creates a path to session takeover and persistence inside the site.

Root Cause

Two compounding defects produce the vulnerability. First, input handling for saswp_review_text lacks sufficient server-side sanitization, and output rendering omits proper HTML escaping. Second, the nonce intended to authorize submissions is printed directly within the shortcode markup. Any anonymous visitor can retrieve the nonce from page source and replay it, defeating the only authorization boundary. Relevant code paths are documented in the plugin's class-saswp-reviews-form.php, class-saswp-reviews-admin.php, and class-saswp-reviews-service.php files per the Wordfence Vulnerability Report.

Attack Vector

An unauthenticated attacker fetches a page containing the reviews shortcode, extracts the printed nonce, and submits a crafted review that includes JavaScript inside the saswp_review_text field. The payload is stored and later rendered to visitors, where it executes in-browser. The scope is Changed because script execution occurs across the site in the browser context of other users. Technical details are referenced in the WordPress Plugin Changeset.

Detection Methods for CVE-2026-96570

Indicators of Compromise

  • Review records in the WordPress database containing <script>, onerror=, onload=, or javascript: substrings inside saswp review tables
  • POST requests to admin-ajax or REST endpoints carrying a saswp_review_text parameter with HTML or script content
  • Unexpected outbound requests from browsers viewing pages that render the saswp reviews shortcode
  • New or modified administrator accounts following visits to pages containing injected reviews

Detection Strategies

  • Inspect webserver access logs for POST submissions targeting the reviews form that contain encoded <, >, or script tokens in request bodies
  • Query stored review content for HTML tags or event handler attributes that should not appear in legitimate text reviews
  • Monitor WordPress audit logs for administrative actions originating from sessions that recently rendered pages containing injected content

Monitoring Recommendations

  • Deploy a Web Application Firewall rule to block script-like payloads submitted to the saswp_review_text parameter
  • Enable alerting on changes to WordPress user roles and option values during the exposure window
  • Capture browser-side Content Security Policy violation reports to surface injected inline scripts

How to Mitigate CVE-2026-96570

Immediate Actions Required

  • Update the Schema & Structured Data for WP & AMP plugin to a version newer than 1.67 as soon as the vendor patch is available
  • Remove or disable the [saswp-reviews-form] shortcode on public pages until the plugin is updated
  • Audit stored reviews in the WordPress database and purge any entries containing HTML tags or event handlers
  • Rotate administrator credentials and invalidate active sessions if injected content was present

Patch Information

Refer to the WordPress Plugin Changeset and the Wordfence Vulnerability Report for the current fix status. Upgrade through the WordPress plugin manager once a version above 1.67 is released.

Workarounds

  • Remove the reviews shortcode from all published posts and pages to eliminate the public submission path
  • Deactivate the Schema & Structured Data for WP & AMP plugin if reviews functionality is not required
  • Apply a WAF rule that blocks requests containing <script, onerror=, or javascript: in the saswp_review_text parameter
  • Enforce a strict Content Security Policy that disallows inline script execution on pages rendering review content
bash
# Example WAF rule concept (ModSecurity-style)
SecRule ARGS:saswp_review_text "@rx (?i)(<script|onerror=|onload=|javascript:)" \
  "id:1026965700,phase:2,deny,status:403,log,msg:'CVE-2026-96570 saswp XSS attempt blocked'"

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.