CVE-2026–10091: Stored XSS in Email JavaScript Cloak WordPress
The Email JavaScript Cloak WordPress plugin fails to sanitise and escape attributes passed to its email shortcode, allowing stored cross-site scripting. An attacker who can create or influence content containing the shortcode may inject JavaScript that executes when other users view the affected page.
Published on medium.com
Email JavaScript Cloak is a WordPress plugin designed to hide email addresses from bots and scrapers by rendering them through JavaScript. The idea is simple: instead of placing a plain email address directly into the page source, the plugin uses a shortcode to generate a cloaked version that is harder for automated…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The plugin treats shortcode attributes as trusted, neither validating them on input nor escaping them for the correct output context before rendering.
Impact
The stored script could run in visitors' browsers and, if a privileged user views the page, may perform actions on their behalf; the text notes that in a standard WordPress setup shortcode injection normally requires some content-editing capability.
What the attacker needed
Ability to create or edit content with the shortcode; victim views the affected page
The fix
No patch was available at disclosure; the plugin should be removed or replaced, and developers should validate shortcode attributes and escape output for the correct context.
How it was found
- Create WordPress content containing the vulnerable email shortcode.
- Include attacker-controlled attributes in the shortcode.
- The plugin processes the attributes without sufficient sanitisation.
- The plugin renders the output without proper escaping.
- The payload is stored in the WordPress content.
- The script executes when another user views the affected page.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A shortcode is a small tag in a WordPress post that the plugin turns into something else, here a hidden email address. This plugin did not clean up the extra settings people put inside that tag, so someone could hide a script in them. The script is saved with the post and runs in the browser of anyone who later opens that page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.