GiveWP – Donation Plugin and Fundraising Platform: Cross-site scripting
A Contributor or higher controls filter_by, layout, sort_by and order_by attributes of the givewp_campaign_grid shortcode. CampaignGridShortcode::parseAttributes encodes these as JSON but inserts the result into a single-quoted HTML attribute without attribute escaping, allowing stored script execution when the grid renders. Affected versions: <= 4.17.0. The matching official changelog confirms 4.18.0 as fixed for this CVE.
- Component
- GiveWP – Donation Plugin and Fundraising Platform
- Plugin slug
give- Affected
- <= 4.17.0
- Safe version
4.18.0- Published
- Oct 10, 2026
This CVE was published Oct 10, 2026 and is one of 69 known issues for this plugin.
Update, patch or deactivate.
Update to 4.18.0 or a later supported release. Application-level remediation: Validate shortcode options against allowed values and apply HTML attribute escaping after JSON encoding.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's `givewp_campaign_grid` shortcode in versions up to, and including, 4.17.0 This is due to insufficient input sanitization and output escaping on user supplied shortcode attributes (`filter_by`, `layout`, `sort_by`, `order_by`) in the CampaignGridShortcode::parseAttributes() function combined with the render template emitting `json_encode($attributes)` inside a single-quoted HTML attribute without esc_attr() — json_encode() does not escape single quotes by default, so a `'` in an attribute value breaks out of the enclosing attribute. 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.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary and upstream sources
- NVD record for CVE-2026-97643
- GitHub upstream reference github.com
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- Wordfence advisory wordfence.com