Skip to content
XSS Write-up Beginner

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.

CyberPodcast Follow

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…

CyberPodcast, on medium.com

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

  1. Create WordPress content containing the vulnerable email shortcode.
  2. Include attacker-controlled attributes in the shortcode.
  3. The plugin processes the attributes without sufficient sanitisation.
  4. The plugin renders the output without proper escaping.
  5. The payload is stored in the WordPress content.
  6. 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.

More by CyberPodcast

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.