HarborGuardharborguardDatabase
Back to search
CRITICALCVE-2026-50160Published Modified CNA GitHub_M

CVE-2026-50160: Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite

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.

Metrics

CVSS v3.1
10.0
Severity
CRITICAL
Fixed in
Affected Products
1

Get notified

Email me when this CVE is updated: new fix versions, severity changes, or any record change.

HarborGuard Analysis

Synopsis

This is a mass assignment vulnerability in the self-hosted backend of Hoppscotch, an API development platform. The unauthenticated POST /v1/onboarding/config endpoint accepts arbitrary extra fields in the request body and writes them directly to the database because NestJS ValidationPipe is not configured to strip unknown properties. An attacker who can reach the endpoint over the network with no credentials can overwrite the JWT_SECRET signing key, granting them the ability to forge authentication tokens for any account, including administrators, resulting in full server compromise. HarborGuard tracks this advisory and will make a patched-image rebuild available the moment upstream publishes a fix.

HarborGuard Coverage

Detection

Detection of CVE-2026-50160 is available across every HarborGuard environment: the CVE is ingested from upstream advisory feeds within minutes of publication and matched against customer images, including custom-built images that package hoppscotch-backend. Any image found running hoppscotch/hoppscotch at version 2026.4.1 or earlier is flagged immediately.

Available
Triage

Triage is available using the CVSS v3.1 score of 10.0 (Critical), weighted against each customer organization's compliance policy to determine urgency and owner routing. Findings are delivered to the appropriate team inbox within each customer environment based on configured escalation rules.

Available
Patch

Because no upstream fix version has been published yet, HarborGuard re-checks this advisory on every ingest cycle and will make a patched-image rebuild available automatically the moment hoppscotch 2026.5.0 or a later fix release appears. For customers who opt into auto-remediation, the rebuild, regression test run, and PR against affected workloads will be triggered without manual intervention as soon as the upstream patch is confirmed.

Pending upstream

Exploit Conditions

  • Network reachabilityRequired

    The vulnerable endpoint is exposed over the network; an attacker must be able to send HTTP requests to the hoppscotch-backend service to exploit this vulnerability.

  • AuthenticationNot required

    The /v1/onboarding/config endpoint requires no credentials, so any unauthenticated caller can submit a malicious request body.

  • Victim interactionNot required

    No user action is needed; the attacker sends the request directly to the server without involving any other party.

  • Attack complexityDetail

    Exploitation is reliable and condition-free: the attacker only needs to craft a JSON body with extra fields and send it to the endpoint before onboarding completes or when no users exist.

Blast Radius

  • Attacker overwrites the JWT_SECRET value stored in the database, taking control of the application's token signing key.
  • Using the forged signing key, the attacker mints valid JWT tokens for any user account, including administrators, without knowing any password.
  • Attacker gains full administrative access to the Hoppscotch instance, including all stored API collections, environment secrets, and team workspaces.
  • Confidentiality and integrity of all data held in the self-hosted deployment are fully compromised; the attacker can read, modify, or delete any resource the application manages.

How HarborGuard Handles This

Available on HarborGuard: because no upstream fix has been published for CVE-2026-50160, HarborGuard continuously re-checks the advisory on every ingest cycle and will surface a patched-image rebuild the moment hoppscotch 2026.5.0 is released. In the interim, customers can apply compensating controls: restrict network access to the /v1/onboarding/config endpoint via ingress or network policy rules so that only trusted internal addresses can reach it; if the instance has already completed onboarding, consider blocking the endpoint entirely at the proxy layer. Where compliance policy permits, auto-remediation will trigger a rebuild, regression test run, and PR automatically once the upstream patch is confirmed, with no manual step required.

See how HarborGuard automates this
Affected packages
  • hoppscotch / hoppscotch
    <= 2026.4.1
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N