A maximum-severity vulnerability has been disclosed in the self-hosted version of Hoppscotch, the widely used open-source API development platform.
Tracked as CVE-2026-50160 and carrying a CVSS 3.1 base score of 10.0, the flaw enables unauthenticated attackers to overwrite JWT signing secrets and seize complete control of a target server through a single HTTP request.
Hoppscotch published the details via GitHub Security Advisory GHSA-j542-4rch-8hwf on May 28, 2026. The vulnerability affects all self-hosted backend deployments running version 2026.4.1 and earlier, with a patch available in version 2026.5.0.
Critical Hoppscotch Flaw
The root cause is a classic mass assignment weakness, classified under CWE-915, in the POST /v1/onboarding/config endpoint.
The NestJS ValidationPipe governing the backend is configured without the whitelist: true option, which means the framework does not strip extra, undeclared properties from incoming request bodies.
An attacker can therefore inject arbitrary configuration keys including JWT_SECRET and SESSION_SECRET into the database even though these fields are never declared in the SaveOnboardingConfigRequest DTO.
Four independent weaknesses combine to enable exploitation. The missing whitelist: true flag is the primary failure, allowing undeclared properties to flow through unchecked.
Once those extra keys enter the service layer, an unconstrained Object.entries(dto) iteration in infra-config.service.ts processes every property on the DTO object using a TypeScript cast with no runtime validation.
Those injected keys then pass through the validateEnvValues method without any resistance, because JWT_SECRET and SESSION_SECRET fall through to a default: break case that silently allows the database write to proceed.
Finally, the onboarding controller itself carries no authentication guard, remaining fully accessible to any unauthenticated request as long as usersCount === 0.
The exploit works only during the brief window between deployment and the completion of the onboarding process precisely when a self-hosted Hoppscotch instance is most likely to be exposed on the internet.
An attacker first queries GET /v1/onboarding/status to confirm onboarding is incomplete, then sends a single crafted POST request embedding attacker-controlled JWT_SECRET and SESSION_SECRET values alongside legitimate onboarding fields.
The attack was confirmed with a live proof-of-concept on a fresh Hoppscotch AIO Docker deployment, using database queries to verify the overwritten secrets post-exploitation.
Once an attacker controls the JWT signing key, the consequences escalate rapidly. Arbitrary JWT tokens can be forged for any user UID, including administrator accounts, bypassing all authentication guards without requiring any valid credentials.
The attacker retains control of the signing key and persistent admin access even after the legitimate administrator resets passwords, because the compromised secret remains in the database until the entire deployment is rebuilt.
All user workspaces, API collections, team data, and stored API keys become accessible through authenticated GraphQL queries. Overwriting SESSION_SECRET simultaneously invalidates every active user session while enabling the attacker to freely mint new ones.
Patch and Mitigation
Hoppscotch has addressed the issue in backend version 2026.5.0 by enabling whitelist: true and forbidNonWhitelisted: true on the global ValidationPipe, ensuring undeclared properties are stripped before reaching the service layer.
Additional hardening includes key allowlist enforcement in updateOnboardingConfig, explicit rejection of security-critical keys inside validateEnvValues, and protecting the onboarding endpoint with a one-time setup token at first boot. The vulnerability was discovered by Kira of Offgrid Security and credited to reporter infycore.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.