CVE-2026-137583 in Hyperswitch
Summary
by MITRE • 11/26/2026
Juspay Hyperswitch 1.8.0 before 1.129.0 uses a hardcoded default webhook secret that allows unauthenticated attackers to forge Stripe webhooks when no merchant webhook secret is configured. Attackers knowing a merchant ID and connector transaction ID can sign a crafted payment_intent.succeeded event with "default_secret" to mark uncaptured payments as succeeded.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in Juspay Hyperswitch versions prior to 1.129.0 represents a critical failure in authentication logic within the webhook processing subsystem, specifically categorized under CWE-798: Use of Hard-coded Credentials. The core technical flaw stems from the system's fallback mechanism when no merchant-specific webhook secret is explicitly configured during setup. Instead of rejecting unauthenticated requests or requiring explicit configuration validation, the application defaults to a hardcoded string value labeled as "default_secret." This static credential serves as the HMAC signature verification key for incoming Stripe webhooks, creating a predictable and universally known authentication token that can be exploited by any external actor with network access to the service.
From an operational perspective, this misconfiguration allows unauthenticated attackers to forge valid webhook events without possessing legitimate merchant credentials. By leveraging knowledge of a target merchant ID and a connector transaction ID, which are often visible in public API responses or logs, an attacker can construct a malicious payment_intent.succeeded event payload. The attacker then signs this payload using the known default secret, causing Hyperswitch to accept it as authentic. This action effectively tricks the system into believing that a Stripe payment has been successfully captured and completed by the external processor, even though no actual financial transaction occurred or funds were transferred.
The impact of this vulnerability is severe, primarily affecting data integrity and potentially leading to unauthorized fulfillment of orders if downstream systems rely on these webhook events for triggering shipping or service delivery processes. This aligns with ATT&CK technique T1498: Network Denial via Service Response Manipulation, although in this context the manipulation leads to business logic abuse rather than simple denial of service. Attackers can exploit this to trigger false positives in fraud detection systems, cause inventory discrepancies by marking items as sold when they are not, or potentially escalate privileges if subsequent workflows assume that a successful webhook implies verified payment status for user account upgrades or access grants.
Mitigation strategies must prioritize the immediate removal of any reliance on default credentials and enforce strict configuration requirements. Administrators should ensure that every merchant integration explicitly defines a unique, high-entropy webhook signing secret during initialization, preventing the system from falling back to the hardcoded default. Furthermore, implementing input validation checks that reject requests lacking valid signatures or those using known weak secrets is essential. Regular security audits of payment gateway integrations and adherence to OWASP guidelines for secure configuration management will help prevent similar hardcoding issues in future updates.