# WP Spell Check <= 12.5 - Reflected Cross-Site Scripting via Results Page Messages

- **ID:** WPSEC-2026-4346
- **Plugin:** WP Spell Check (`wp-spell-check`), https://wordpress.org/plugins/wp-spell-check/
- **Affected versions:** all versions before 12.6
- **Fixed in:** 12.6 (Update to 12.6 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-spell-check
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4346/

## Description

The WP Spell Check plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'old_words' and 'new_words' parameters on the spelling results page in all versions up to, and including, 12.5, due to the success message being escaped with esc_html() and then decoded again with htmlspecialchars_decode(). HTML entities in the submitted words survive sanitize_text_field() and are turned back into markup on output. Because the word update action also did not require a nonce, this makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can trick an administrator into clicking a crafted link.

## References

- https://wpsec.com/vuln/WPSEC-2026-4346/
- https://plugins.svn.wordpress.org/wp-spell-check/tags/12.6/
- https://wordpress.org/plugins/wp-spell-check/

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

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.
