# Ghost Kit – Page Builder Blocks, Motion Effects & Extensions <= 3.7.2 - Authenticated (Administrator+) Stored Cross-Site Scripting via Global Custom JavaScript

- **ID:** WPSEC-2026-1639
- **Plugin:** Block Animations, Motion & Scroll Effects – Ghost Kit (`ghostkit`), https://wordpress.org/plugins/ghostkit/
- **Affected versions:** all versions before 3.8.0
- **Fixed in:** 3.8.0 (Update to 3.8.0 or later.)
- **Severity:** Medium 4.4 (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/ghostkit
- **Fix released:** 2026-10-24
- **Published:** 2026-10-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1639/

## Description

The Ghost Kit plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the update_custom_code REST API route in all versions up to, and including, 3.7.2, due to a missing unfiltered_html capability check when saving the global head and footer JavaScript, which is printed unescaped on every page. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts that execute whenever a user visits the site. This only affects multi-site installations and installations where unfiltered_html has been disabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-1639/
- https://plugins.svn.wordpress.org/ghostkit/tags/3.8.0/
- https://wordpress.org/plugins/ghostkit/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1639/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
