CVE-2026-89051: Hide My WP Ghost <= 7.0.12 - Unauthenticated Stored Cross-Site Scripting via Comment Content
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.
Affected Software
Event History
Frequently Asked Questions
Does exploitation require an attacker to have a WordPress account or other privileges?
No. The vulnerability can be exploited by an unauthenticated attacker.
When does the injected script execute?
The injected script executes when a user clicks an injected link on an affected page. This requires user interaction, but the attacker does not need privileges to place the malicious content.
Which installations should be considered affected, and what version should be used for remediation?
WP Ghost installations running version 7.0.12 or earlier should be considered affected. The referenced plugin changeset identifies version 7.0.13 as the newer version to move to.