CVE-2026-119635: Groundhogg <= 4.10 - Unauthenticated Stored Cross-Site Scripting via 'post_title' Merge-Tag of [ghr] Shortcode
The Groundhogg plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'posttitle' merge-tag of the [ghr] shortcode in versions up to, and including, 4.10 The posttitle replacement is registered with 'nested' => true, so the nested branch of Replacements::doreplacement() returns the merge value through tacklereplacements() without passing it through escapemergetags()/escapeshortcodes(); the callback singlepost() calls htmlentitydecode(getthetitle(), ENTQUOTES), converting the entity-encoded text that wpfilterkses leaves intact on a Contributor's post title back into raw HTML, which is then emitted into the rendered post. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs authenticated WordPress access with the Contributor role or higher. They can place a crafted payload in a post title and rely on the affected shortcode and merge-tag processing to render it as executable HTML.
Are sites affected by unauthenticated attacks?
No. Exploitation requires an authenticated account with at least Contributor-level permissions; the provided information does not indicate that unauthenticated visitors can inject the payload.
When does the injected script execute?
The script executes when a user accesses a page where the injected content is rendered. The issue is stored XSS, so the payload persists in the post title rather than requiring the attacker to deliver a separate one-time script request.