# Knit Pay – Cashfree, Instamojo, Razorpay, PayPal and more <= 9.6.8.0 - Unauthenticated Payment Bypass via 'child-config-id' Parameter

- **ID:** WPSEC-2026-4298
- **Plugin:** Knit Pay – Cashfree, Instamojo, Razorpay, PayPal and more (`knit-pay`), https://wordpress.org/plugins/knit-pay/
- **Affected versions:** from 4.0.0 before 9.6.8.1
- **Fixed in:** 9.6.8.1 (Update to 9.6.8.1 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-639
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/knit-pay
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4298/

## Description

The Knit Pay – Cashfree, Instamojo, Razorpay, PayPal and more plugin for WordPress is vulnerable to a payment bypass via the 'child-config-id' parameter of the Multi Gateway payment return handler in versions 4.0.0 up to, and including, 9.6.8.0. This is due to the Multi Gateway's update_status() function accepting any gateway configuration ID from the request and switching the payment to it, without verifying that the ID is one of the Multi Gateway's enabled gateways or that the payment is still open. This makes it possible for unauthenticated attackers who place an order on a site using a Multi Gateway configuration to route their own payment to any other gateway configuration on the site, including configurations not offered to customers, such as a Test gateway that lets the payer mark the payment as successful. This lets them complete orders without paying.

## References

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

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

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.
