# SiteSEO – SEO Simplified <= 1.4.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Table of Contents Feature

- **ID:** WPSEC-2026-3965
- **Plugin:** SiteSEO – SEO Simplified (`siteseo`), https://wordpress.org/plugins/siteseo/
- **Affected versions:** all versions before 1.4.3
- **Fixed in:** 1.4.3 (Update to 1.4.3 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/siteseo
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3965/

## Description

The SiteSEO – SEO Simplified plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Table of Contents feature in all versions up to, and including, 1.4.2. This is due to the add_ids_to_headings() content filter: on posts that contain the [siteseo_toc] shortcode, it parses the already-sanitized post content with DOMDocument and outputs it again with saveHTML(). That round trip decodes entity-encoded attribute values and writes them back without escaping, so markup that WordPress's content filtering allowed becomes executable. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, provided the Table of Contents feature is enabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-3965/
- https://plugins.svn.wordpress.org/siteseo/tags/1.4.3/
- https://wordpress.org/plugins/siteseo/

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

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.
