Advisory · CWE-798 · CVE submitted, awaiting review
Shipped admin credentials in Juspay Hyperswitch
Hyperswitch ships a working admin API key and JWT secret in its example configuration. The startup validator rejects only blank values, so an instance left on the defaults boots and runs with a published admin key — reachable by anyone on the network.
At a glance
| CVE | Requested from MITRE · submitted, awaiting assignment |
|---|---|
| Class | CWE-798 — Use of Hard-coded Credentials |
| Severity | Critical · CVSS 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| Affected | Hyperswitch through v2026.07.08.1 (commit 51a6960, 2026-07-08) |
| Vendor | Juspay Technologies — notified at security@juspay.in |
| Vector | Network · self-hosted · default configuration · no prior privilege |
| Status | Disclosed under coordinated disclosure · 90-day window elapsed · no fixed release |
| Researcher | Drew Morana (@dmorana) · Whitenbaker Labs |
The default that ships open
A payments platform’s admin plane is supposed to be the hardest thing to reach. Here it ships with the key already in the box, and the one check that should have caught it only looks for a blank.
What goes wrong
Hyperswitch’s shipped example configuration contains a working admin API key (test_admin) and a JWT secret (secret). The startup validator in crates/router/src/configs/validations.rs calls is_default_or_empty() — but because the fields are Secret<String>, the comparison effectively only tests for the empty string. The published defaults are never checked, so an instance on the shipped config starts normally with a known admin key.
Three operations were confirmed, each using the test_admin key in an api-key header:
- Create an organizationPOST /organization
- Issue a live API key for a merchantPOST /api_keys/{merchant_id}
- Permanently delete a merchantDELETE /accounts/{merchant_id}
Not a new class of mistake
This is the same failure as CVE-2020-13945 in Apache APISIX — a shipped default admin token that operators were never forced to replace.
Impact
An instance on the shipped defaults answers to a published admin key.
An attacker with network access to a default-configuration instance has administrative control: create organizations and merchants, mint API keys, exfiltrate customer PII, create payments, and delete merchant accounts. No discovery step and no prior privilege are required.
Disclosure timeline
- 28 Mar 2026Disclosed to Juspay at security@juspay.in — a 90-day window opens.
- 26 Jun 2026Window elapsed with no fixed release published.
- 08 Jul 2026Re-confirmed at v2026.07.08.1, commit 51a6960489caa3bb246e547b4b3cc11bd890a190 — defaults and validator behavior unchanged.
- Jul 2026CVE requested from MITRE; advisory published as the public reference.
Remediation
No fixed release is published. Operators must set a non-default admin API key and JWT secret before exposing an instance; any instance still running the shipped defaults should be treated as compromised. Operators needing remediation guidance can contact Whitenbaker Labs.
