CVE-2026-50160
Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite
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.
INFO
Published Date :
July 1, 2026, 7:16 p.m.
Last Modified :
July 2, 2026, 7:45 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | CRITICAL | [email protected] |
Solution
- Update Hoppscotch to version 2026.5.0.
- Apply the latest security patches for hoppscotch-backend.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-50160.
| URL | Resource |
|---|---|
| https://github.com/hoppscotch/hoppscotch/pull/6171 | Issue Tracking Patch |
| https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-j542-4rch-8hwf | Exploit Mitigation Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/06/23/7 | Exploit Mailing List Third Party Advisory |
| https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-j542-4rch-8hwf | Exploit Mitigation Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-50160 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-50160
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-50160 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-50160 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jul. 02, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:hoppscotch:hoppscotch:*:*:*:*:*:*:*:* versions up to (excluding) 2026.5.0 Added Reference Type GitHub, Inc.: https://github.com/hoppscotch/hoppscotch/pull/6171 Types: Issue Tracking, Patch Added Reference Type GitHub, Inc.: https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-j542-4rch-8hwf Types: Exploit, Mitigation, Vendor Advisory Added Reference Type CISA-ADP: https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-j542-4rch-8hwf Types: Exploit, Mitigation, Vendor Advisory Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2026/06/23/7 Types: Exploit, Mailing List, Third Party Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 02, 2026
Action Type Old Value New Value Changed SSVC {'id': 'CVE-2026-50160', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-01T18:45:17.889334Z'} {'id': 'CVE-2026-50160', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-01T00:00:00+00:00'} -
New CVE Received by [email protected]
Jul. 01, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'hoppscotch', 'product': 'hoppscotch', 'versions': [{'status': 'affected', 'version': '<= 2026.4.1'}]}] Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N Added CWE CWE-915 Added Reference https://github.com/hoppscotch/hoppscotch/pull/6171 Added Reference https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-j542-4rch-8hwf -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 01, 2026
Action Type Old Value New Value Added Reference https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-j542-4rch-8hwf Added SSVC {'id': 'CVE-2026-50160', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-01T18:45:17.889334Z'} -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Jul. 01, 2026
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2026/06/23/7