# Knit Pay – Cashfree, Instamojo, Razorpay, PayPal and more <= 9.6.4.0 - Unauthenticated Missing Authorization to Payment Cancellation via Stripe Webhook

- **ID:** WPSEC-2026-3170
- **Plugin:** Knit Pay – Cashfree, Instamojo, Razorpay, PayPal and more (`knit-pay`), https://wordpress.org/plugins/knit-pay/
- **Affected versions:** from 8.96.11.0 before 9.6.5.0
- **Fixed in:** 9.6.5.0 (Update to 9.6.5.0 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-345
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-15)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/knit-pay
- **Fix released:** 2026-11-14
- **Published:** 2026-11-15
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3170/

## Description

The Knit Pay plugin for WordPress is vulnerable to unauthorized modification of data via the Stripe webhook endpoint (kp_stripe_webhook) in all versions up to, and including, 9.6.4.0, due to the endpoint processing an unsigned JSON body, selecting the payment from the request-supplied knitpay_payment_id metadata without checking it against the payment's stored Stripe Checkout session ID, and honouring a 'cancelled' query parameter on webhook requests. This makes it possible for unauthenticated attackers to mark arbitrary pending Stripe payments as cancelled, and to force payment status refreshes and add notes to arbitrary payments.

## References

- https://wpsec.com/vuln/WPSEC-2026-3170/
- https://plugins.svn.wordpress.org/knit-pay/tags/9.6.5.0/
- https://wordpress.org/plugins/knit-pay/

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

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.
