# Rich Table of Contents <= 1.4.3 - Unauthenticated Missing Authorization to Table of Contents Color Settings Update

- **ID:** WPSEC-2026-3799
- **Plugin:** Rich Table of Contents (`rich-table-of-content`), https://wordpress.org/plugins/rich-table-of-content/
- **Affected versions:** all versions before 1.4.5
- **Fixed in:** 1.4.5 (Update to 1.4.5 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-24)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/rich-table-of-content
- **Fix released:** 2026-11-23
- **Published:** 2026-11-24
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3799/

## Description

The Rich Table of Contents plugin for WordPress is vulnerable to unauthorized modification of data via the table of contents color settings in all versions up to, and including, 1.4.3, due to a missing capability check and missing nonce verification in the rtoc_sanitize() function, which ran on every page load and saved color values taken from the request with update_option(). This makes it possible for unauthenticated attackers to change the plugin's table of contents color settings to arbitrary hex color values.

## References

- https://wpsec.com/vuln/WPSEC-2026-3799/
- https://plugins.svn.wordpress.org/rich-table-of-content/tags/1.4.5/
- https://wordpress.org/plugins/rich-table-of-content/

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

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.
