CVE-2026-119159: Hide My WP Ghost <= 7.0.15 - Unauthenticated Stored Cross-Site Scripting via Comment Content
The Hide My WP Ghost – Security & Firewall plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 7.0.15 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 accesses an injected page. Successful exploitation requires that the plugin's URL rewriting mode is active (hmwpmode set to a non-default value) and that the attacker has one previously approved comment from the same author/email address, after which WordPress auto-approves the attack comment without moderator intervention.
Affected Software
Event History
Frequently Asked Questions
Is a default installation affected?
Exploitation requires URL rewriting mode to be active, with hmwp_mode set to a non-default value. The stated attack condition is therefore not met when hmwp_mode remains at its default value.
What must an attacker do before submitting a malicious comment?
The attacker must have at least one previously approved comment using the same author name and email address. WordPress then auto-approves the attack comment without moderator intervention.
Which sites should be prioritized for review?
Prioritize sites running Hide My WP Ghost version 7.0.15 or earlier that have hmwp_mode set to a non-default value. Sites where prior comments can become approved under a reused author/email identity meet the additional exploitation condition.
What can be changed if updating is not immediately possible?
Returning hmwp_mode to its default value removes the URL-rewriting prerequisite described for exploitation. This may affect the site's URL-rewriting behavior, so the operational impact should be evaluated before changing it.