Auth bypass in Hoppscotch
CVE-2026-28216
hoppscotch is an open source API development ecosystem. Prior to version 2026.2.0, any logged-in user can read, modify or delete another user's personal environment by ID. `user-environments.resolver.ts:82-109`, `updateUserEnvironment` mutation uses `@UseGuards(GqlAuthGuard)` but is missing the `@GqlUser()` decorator entirely. The user's identity is never extracted, so the service receives only the environment ID and performs a `prisma.userEnvironment.update({ where: { id } })` without any ownership filter. `deleteUserEnvironment` does extract the user but the service only uses the UID to check if the target is a global environment. Actual delete query uses WHERE { id } without AND userUid. hoppscotch environments store API keys, auth tokens and secrets used in API requests. An authenticated attacker who obtains another user's environment ID can read their secrets, replace them with malicious values or delete them entirely. The environment ID format is CUID, which limits mass exploitation but insider threat and combined info leak scenarios are realistic. Version 2026.2.0 fixes the issue.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L.
EPSS exploit prediction
EPSS: 0.004 (33.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 33.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.000
Affected products
- Hoppscotch — versions < 2026.2.0
Weakness classification (CWE)
References
- github.com/hoppscotch/hoppscotch/security/advisories/GHSA-72rv-vc3j-5vqr (Exploit, Vendor Advisory)
- github.com/hoppscotch/hoppscotch/releases/tag/2026.2.0 (Product, Release Notes)
Frequently asked questions
- What is CVE-2026-28216?
- CVE-2026-28216 is a high-severity vulnerability in Hoppscotch, classified under Authorization Bypass Through User-Controlled Key. CVSS score: 8.3/10. Published 2026-02-26.
- How severe is CVE-2026-28216?
- High severity. CVSS v3 base score is 8.3 out of 10.