CVE-2026-50160

Source
https://cve.org/CVERecord?id=CVE-2026-50160
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50160.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-50160
Aliases
  • GHSA-j542-4rch-8hwf
Published
2026-07-01T17:48:49.381Z
Modified
2026-07-15T01:49:04.172819541Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite
Details

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 JWTSECRET and SESSIONSECRET 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.

Database specific
{
    "cwe_ids": [
        "CWE-915"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50160.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/hoppscotch/hoppscotch

Affected ranges

Type
GIT
Repo
https://github.com/hoppscotch/hoppscotch
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:hoppscotch:hoppscotch:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2026.4.1"
        },
        {
            "fixed": "2026.5.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ]
}

Affected versions

2023.*
2023.12.0
2023.12.1
2023.12.2
2023.12.3
2023.4.0
2023.4.1
2023.4.2
2023.4.3
2023.4.4
2023.4.5
2023.8.0
2023.8.1
2023.8.2
2024.*
2024.10.0
2024.10.1
2024.11.0
2024.12.0
2024.12.1
2024.12.2
2024.3.0
2024.3.1
2024.3.2
2024.3.3
2024.6.0
2024.7.0
2024.7.1
2024.8.0
2024.8.1
2024.8.2
2024.8.3
2024.9.0
2024.9.1
2024.9.2
2025.*
2025.1.0
2025.1.1
2025.10.0
2025.10.1
2025.11.0
2025.11.1
2025.11.2
2025.12.0
2025.12.1
2025.2.0
2025.2.1
2025.3.0
2025.3.1
2025.3.2
2025.4.0
2025.5.0
2025.5.1
2025.6.0
2025.6.1
2025.7.0
2025.7.1
2025.8.0
2025.8.1
2025.9.0
2025.9.1
2025.9.2
2026.*
2026.1.0
2026.1.1
2026.2.0
2026.2.1
2026.3.0
2026.3.1
2026.4.0
v0.*
v0.1.0
v1.*
v1.0.0
v1.10.0
v1.12.0
v1.5.0
v1.9.0
v1.9.5
v1.9.7
v1.9.9
v2.*
v2.0.0
v2.1.0
v2.2.0
v2.2.1
v3.*
v3.0.0
v3.0.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50160.json"