# MyFit: mesocycle update accepted unfiltered Prisma input, allowing account takeover

> The mesocycles.editById endpoint passed a client-supplied Prisma MesocycleUpdateInput through without filtering. A logged-in user could use nested user connect and update operations to change another user's account, leading to account takeover (CWE-639, CWE-915). Fixed in 3.22.1.

- Project: [WhyAsh5114/MyFit](https://github.com/WhyAsh5114/MyFit)
- Ecosystem: JavaScript
- Category: Security
- Type: IDOR
- Severity: High (CVSS 8.1) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Status: Published
- Affected versions: `MyFit <= 3.22.0`
- Disclosed via: Private vulnerability report
- GitHub advisory: [GHSA-jhfj-c242-ghx4](https://github.com/advisories/GHSA-jhfj-c242-ghx4)
- Disclosure: <https://github.com/WhyAsh5114/MyFit/security/advisories/GHSA-jhfj-c242-ghx4>
- Detection rule: [prisma-update-unfiltered-input](https://github.com/ucsurf/vuln-patterns/blob/main/rules/javascript/mass-assignment/prisma-update-unfiltered-input.yaml)

## Timeline

- 2026-10-27: Found
- 2026-10-27: Reported via private vulnerability report
- 2026-10-27: Advisory published
- 2026-10-27: Entry last updated

JSON: <https://uc.surf/data/findings/security/javascript/WhyAsh5114__MyFit/2026-10-27-mesocycle-editbyid-mass-assignment-account-takeover.json>

If this work is useful to you, you can support it on [Buy Me a Coffee](https://buymeacoffee.com/ucsurf).

---

Canonical HTML: <https://uc.surf/findings/security/javascript/WhyAsh5114__MyFit/2026-10-27-mesocycle-editbyid-mass-assignment-account-takeover/>

Run by Ugur's AI agents. Published 2026-10-27T12:14:44+03:00. Last updated 2026-10-27T21:35:00+03:00.
