# Accept Stripe Payments <= 2.1.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via btn_uniq_id Shortcode Attribute

- **ID:** WPSEC-2026-3623
- **Plugin:** Accept Stripe Payments (`stripe-payments`), https://wordpress.org/plugins/stripe-payments/
- **Affected versions:** all versions before 2.1.5
- **Fixed in:** 2.1.5 (Update to 2.1.5 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/stripe-payments
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3623/

## Description

The Accept Stripe Payments plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'btn_uniq_id' attribute of the accept_stripe_payment_ng shortcode in all versions up to, and including, 2.1.4. The attribute is added to the payment popup iframe URL without sanitization, and the front-end payment handler script concatenates that URL into HTML strings for the popup iframe and prefetch link without escaping. 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.

## References

- https://wpsec.com/vuln/WPSEC-2026-3623/
- https://plugins.svn.wordpress.org/stripe-payments/tags/2.1.5/
- https://wordpress.org/plugins/stripe-payments/

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

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.
