Juspay Hyperswitch: Shipped Admin Credentials (CWE-798) | Whitenbaker Labs

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.

Severity Critical · CVSS 9.8 Class Hard-coded credentials · CWE-798 Affected through v2026.07.08.1 Status Disclosed · 90-day window elapsed
01

At a glance

CVERequested from MITRE · submitted, awaiting assignment
ClassCWE-798 — Use of Hard-coded Credentials
SeverityCritical · CVSS 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
AffectedHyperswitch through v2026.07.08.1 (commit 51a6960, 2026-07-08)
VendorJuspay Technologies — notified at security@juspay.in
VectorNetwork · self-hosted · default configuration · no prior privilege
StatusDisclosed under coordinated disclosure · 90-day window elapsed · no fixed release
ResearcherDrew 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.

02

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.

03

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.

04

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.
05

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.

Whitenbaker Labs

Independent adversarial security research — silent-patch detection, CVE disclosure through MITRE, and the evidence behind both.

Research by Drew Morana (@dmorana) · Toronto

We don’t file reports. We prove findings.

Published for coordinated disclosure and defensive purposes. Findings confirmed against the referenced public release.

© 2026 Whitenbaker Labs
research@whitenbaker.com · PGP on request