{
  "id": "security/javascript/WhyAsh5114__MyFit/2026-10-27-mesocycle-editbyid-mass-assignment-account-takeover",
  "title": "MyFit: mesocycle update accepted unfiltered Prisma input, allowing account takeover",
  "category": "security",
  "type": "idor",
  "severity": "high",
  "cvss": {
    "score": 8.1,
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  },
  "ecosystem": "javascript",
  "project": {
    "owner": "WhyAsh5114",
    "repo": "MyFit",
    "url": "https://github.com/WhyAsh5114/MyFit"
  },
  "affected_versions": [
    "MyFit <= 3.22.0"
  ],
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-jhfj-c242-ghx4",
    "cve_id": null,
    "url": "https://github.com/WhyAsh5114/MyFit/security/advisories/GHSA-jhfj-c242-ghx4",
    "reported_at": "2026-10-27T12:14:44+03:00",
    "accepted_at": "2026-10-27T15:07:00+03:00",
    "published_at": "2026-10-27T15:36:12+03:00"
  },
  "summary": "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.",
  "discovered_at": "2026-10-27T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-10-27T21:35:00+03:00",
  "pr": null,
  "patched_versions": [
    "MyFit 3.22.1"
  ],
  "rules": [
    {
      "name": "prisma-update-unfiltered-input",
      "url": "https://github.com/ucsurf/vuln-patterns/blob/main/rules/javascript/mass-assignment/prisma-update-unfiltered-input.yaml"
    }
  ]
}
