CVE-2026-16942 WP Custom HTML Pages <= 0.6.2 - Author+ Stored XSS
Authors can inject JavaScript via custom HTML pages, leading to code execution and potential account takeover for visitors including administrators.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-16942?
CVE-2026-16942 is a medium-severity cross-site scripting vulnerability in Unknown WP Custom HTML Page, published on 5 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The WP Custom HTML Page WordPress plugin through 0.6.2 does not sanitise HTML stored through one of its custom page handlers, nor restrict it to users allowed to post unfiltered HTML, allowing users with the Author role to store JavaScript that is served unescaped at a public URL and executes for any visitor, including administrators.
Weakness: CWE-79
Which versions are affected by CVE-2026-16942?
How do I fix CVE-2026-16942?
No fix has been published for CVE-2026-16942 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-16942 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-16942 exists.
Sources
Also known as GHSA-34jf-wc5v-9rcm.