CVE-2026-89051 Hide My WP Ghost <= 7.0.12 - Unauthenticated Stored Cross-Site Scripting via Comment Content
Unauthenticated attackers can inject arbitrary scripts via comment content, leading to code execution when users click injected links.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-89051?
CVE-2026-89051 is a high-severity cross-site scripting vulnerability in johndarrel Hide My WP Ghost – Security & Firewall, published on 16 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The WP Ghost (Hide My WP Ghost) – Security & Firewall plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'replaceHeadersAndTags' function in versions up to, and including, 7.0.12 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user clicks on the injected link.
Weakness: CWE-79
Which versions are affected by CVE-2026-89051?
How do I fix CVE-2026-89051?
No fix has been published for CVE-2026-89051 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-89051 being exploited?
There is no known exploitation of CVE-2026-89051 in the wild and no public exploit code.
Sources
Also known as GHSA-hvxm-vpq4-3qxh.