CVE-2026-136859: WP Spell Check <= 12.4.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'post_title' Parameter
The WP Spell Check plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'posttitle' parameter in all versions up to, and including, 12.4.1 due to insufficient input sanitization and output escaping. 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. This requires the Administrator to run the plugin's Posts scan while the scanpostdrafts option is enabled (default: true), which causes Contributor draft posts — and their attacker-controlled post titles — to be ingested into the spellcheck results table.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable draft-post scanning by setting scan_post_drafts to false.
WP Spell Check scan_post_drafts = false
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated with Contributor-level access or higher. They can place malicious script in the title of a draft post.
Is the default configuration affected?
Yes. The scan_post_drafts option is enabled by default, so Contributor draft titles can be included when an Administrator runs the plugin's Posts scan.
What conditions are required for the injected script to execute?
An Administrator must run the Posts scan while draft scanning is enabled, causing the draft title to be stored in the spellcheck results table. The script executes when a user accesses an injected page.
What can be done if updating is not immediately possible?
Disable the scan_post_drafts option to prevent Contributor draft posts and their titles from being ingested during Posts scans. Restrict Contributor-level access to trusted users until the issue is remediated.