# Schema & Structured Data for WP & AMP <= 1.67 - Unauthenticated Stored Cross-Site Scripting via Review Form

- **ID:** WPSEC-2026-0887
- **Plugin:** Schema & Structured Data for WP & AMP (`schema-and-structured-data-for-wp`), https://wordpress.org/plugins/schema-and-structured-data-for-wp/
- **Affected versions:** all versions before 1.68
- **Fixed in:** 1.68 (Update to 1.68 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-10-14)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/schema-and-structured-data-for-wp
- **Fix released:** 2026-10-12
- **Published:** 2026-10-14
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0887/

## Description

The Schema & Structured Data for WP & AMP plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the review text submitted through the front-end review form ([saswp-reviews-form]) in all versions up to, and including, 1.67. This is due to insufficient input sanitization and output escaping. The review text sanitizer can be bypassed with tags that have whitespace after the '<'. The stored value is printed unescaped inside a textarea in the admin review editor. That editor output is filtered with an allowed-HTML list that permits script tags, and the filter turns the obfuscated tags back into working tags. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator opens the submitted review in the admin area.

## References

- https://wpsec.com/vuln/WPSEC-2026-0887/
- https://plugins.svn.wordpress.org/schema-and-structured-data-for-wp/tags/1.68/
- https://wordpress.org/plugins/schema-and-structured-data-for-wp/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0887/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
