In the WordPress security plugin Hide My WP Ghost, WP Ghost for short, script code from a comment could be executed in visitors' browsers under certain conditions up to version 7.0.15. The security firm Wordfence rates the severity of the associated vulnerability as high, at 7.2 out of 10 points, and nobody needs a user account on the website to carry out an attack. Between November 18 and 26, four CVE entries for the plugin were published, meaning public descriptions of one vulnerability each.
It is best to update right away to the latest version, 7.0.22. The vendor dates it to November 27. For the free plugin, WordPress.org lists more than 100,000 active installations, and just under 18 percent of them still run versions before 7.0. The four entries make no statements about the paid version.
According to Wordfence, two conditions had to come together for an attack via the comment text. WP Ghost had to be rewriting the WordPress paths, and the attacker already needed an approved comment under the name or email address they used for the attack. WordPress then approved the next comment without anyone having to review it first.
Whether the first condition applies to you is shown by the security level under "Change Paths" in the WP Ghost menu. The levels "Lite Mode" and "Ghost Mode" change the default addresses of your website and thus meet the first condition from the associated CVE entry. With "Deaktiviert" (disabled), on the other hand, the addresses remain untouched. Many labels appear in English even in the German backend.
The corresponding fix came as early as the end of October with version 7.0.16, around four weeks before the entry was published. However, the changelog for this version says nothing about a security vulnerability. We found the change in the source code of version 7.0.16, where two comments in the code mention the number of the CVE entry. According to them, the search pattern could capture several HTML elements.
Why is version 7.0.16 not enough?
Three further entries in the WPScan security database concern versions before 7.0.19 and therefore also version 7.0.16.
Four vulnerabilities in WP Ghost
CVE entries published between November 18 and 26, 2026
Affected versionConsequence
- Up to 7.0.15Script code via the text of a comment
- Before 7.0.19Script code via the name in the comment
- 7.0.0 to 7.0.18Bypassing the second factor with the correct password
- Before 7.0.19Hidden login page is revealed
The first row requires rewritten paths and a previously approved comment
Source: CVE.org
- Code could also be injected without an account via the name in the comment. The code ran for all visitors of pages that list the latest comments, even for logged-in administrators.
- In versions 7.0.0 to 7.0.18, an attacker only needed the correct password to bypass two-factor login. According to the changelog, the bypass worked via XML-RPC, an interface for remote access to WordPress, as long as access was not blocked.
- In addition, a debug function left in the code revealed to strangers without an account the hidden login page, the admin path and the renamed folders in which your content is stored.
Three of the four new entries are therefore connected to the fact that WP Ghost rewrites the output page in order to hide typical WordPress traces. The plugin's vendor itself points out on WordPress.org that a changed address does not fix faulty plugin code.
What this means for your website
It is best to first back up your settings via "Backup/Restore". Then you update the plugin, which in the current free version is called "WP Ghost Lite" and requires at least WordPress 5.8 and PHP 7.4. Versions 7.0.20 and 7.0.21 also bring further security fixes. The lesson Sicherheit und Backups (security and backups) from our WordPress course for beginners fits this topic.
Disabling the plugin before the update is not a good way out, because according to the changelog the settings are reset in the process. Until the update, you can specify under "Settings" and "Discussion" that every comment must be approved manually. New comments then appear only after your review. However, only the update closes the vulnerabilities.
After the update, it's best to check the administrator accounts and the most recently approved comments for entries that you can't attribute to anyone. In the catalog of the US agency CISA for actively exploited security vulnerabilities, none of the four was listed as of November 29.
Wordfence published the entry for the security vulnerability in the comment text on November 26, 2026.
Sources