CVE-2026-50160
JSON

10.0critical

Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite

Severity
10.0critical CVSS:3.1 by GitHub_M
Exploit likelihood
20.7% (higher than 97% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Hoppscotch is an API development ecosystem. In self-hosted deployments of hoppscotch-backend from version 2026.4.1 and earlier, the unauthenticated POST /v1/onboarding/config endpoint is vulnerable to mass assignment. The global NestJS ValidationPipe is configured without whitelist: true, so extra properties on the request body that are not declared in SaveOnboardingConfigRequest are not stripped and are iterated in the service layer as if they were legitimate InfraConfig entries. Because keys such as JWT_SECRET and SESSION_SECRET are valid InfraConfigEnum values and are not explicitly rejected during validation, an unauthenticated attacker who can reach a fresh instance before onboarding completes (or when no users exist) can overwrite these values in the database. Overwriting JWT_SECRET gives the attacker control of the JWT signing key, allowing them to forge tokens for any user, including administrators, and results in full server compromise. The issue is fixed in hoppscotch 2026.5.0.

Affected

Product or packageVersionsReported by
hoppscotch hoppscotch<= 2026.4.1, before 2026.5.0CVE List, NVD

Classification

CWE-915

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-50160 changed 2026-07-02CVE Terms of Use
NVDCVE-2026-50160 changed 2026-07-02Public domain