# CVE-2026-28216: hoppscotch has IDOR in updateUserEnvironment / deleteUserEnvironment

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 35% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-26T22:36:50.539Z
- Modified: 2026-06-17T10:28:20.963Z
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- hoppscotch hoppscotch: < 2026.2.0; before 2026.2.0

## References

- <https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-72rv-vc3j-5vqr> (exploit, vendor-advisory)
- <https://github.com/hoppscotch/hoppscotch/releases/tag/2026.2.0> (product, release-notes)

## Sources

- CVE List: [CVE-2026-28216](https://www.cve.org/CVERecord?id=CVE-2026-28216), CVE Terms of Use, modified 2026-02-27
- NVD: [CVE-2026-28216](https://nvd.nist.gov/vuln/detail/CVE-2026-28216), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-28216 · Whole record: https://cve.day/CVE-2026-28216.json · Rebuilt by cve.day 2026-11-25T22:59:14.985Z
