{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50160 exists.","fix":"No fix has been published for CVE-2026-50160 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-50160 is a critical missing authorization vulnerability in hoppscotch, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-50160 and fix it if it is affected.\n\nWhat it is: CVE-2026-50160 is a critical missing authorization vulnerability in hoppscotch, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50160 exists.\n\nAffected product: hoppscotch. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-50160/ (Markdown: https://insights.sbomify.com/CVE-2026-50160/index.md)","id":"CVE-2026-50160","markdown":"https://insights.sbomify.com/CVE-2026-50160/index.md","name":"CVE-2026-50160","record":{"aliases":["GHSA-j542-4rch-8hwf"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"API development tool","requires_auth":"none","summary":"Unauthenticated attackers can overwrite JWT secrets via mass assignment in self-hosted Hoppscotch, enabling token forgery and full server compromise.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hoppscotch","vendor":"hoppscotch"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-50160.yaml","stars":null,"title":"Hoppscotch \u003c= 2026.4.1 - Mass Assignment JWT_SECRET Overwrite"}],"tier":"weaponised"},"has_fix":false,"headline":"Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite","id":"CVE-2026-50160","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"libre: Integer overflow in websock_decode() masked frame length check leads to heap buffer overflow","id":"CVE-2026-50161"},"packages":[],"prev":{"headline":"Mermaid allows CSS injection applying to sibling elements of the diagram","id":"CVE-2026-50159"},"products":["hoppscotch"],"published":"2026-07-01","related":[{"cvss_score":9.1,"headline":"hoppscotch Vulnerable to Unauthenticated Onboarding Config Takeover","id":"CVE-2026-28215","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":8.5,"headline":"hoppscotch: Improper loopback redirect_uri validation in device-login flow","id":"CVE-2026-34931","kev_date_added":null,"published":"2026-04-02"},{"cvss_score":8.5,"headline":"hoppscotch: Stored XSS via mock server responses on backend origin","id":"CVE-2026-34932","kev_date_added":null,"published":"2026-04-02"},{"cvss_score":8.3,"headline":"hoppscotch has IDOR in updateUserEnvironment / deleteUserEnvironment","id":"CVE-2026-28216","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":8,"headline":"Cross-site Scripting in hoppscotch/hoppscotch","id":"CVE-2022-0121","kev_date_added":null,"published":"2022-01-06"},{"cvss_score":7.8,"headline":"Database password exposed in logs in hoppscotch","id":"CVE-2023-34097","kev_date_added":null,"published":"2023-06-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-02","vendors":["hoppscotch"]},"summary":"Unauthenticated attackers can overwrite JWT secrets via mass assignment in self-hosted Hoppscotch, enabling token forgery and full server compromise.","url":"https://insights.sbomify.com/CVE-2026-50160/"}