# CVE-2026-59979: YosemiteCrew: Missing organization authorization on service and PMS library/template routes


- **Severity:** High 8.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 28 Oct 2026
- **Updated:** 28 Oct 2026
- **Also known as:** GHSA-256m-gg99-4274

## What is CVE-2026-59979?

CVE-2026-59979 is a high-severity vulnerability in YosemiteCrew Yosemite-Crew, published on 28 Oct 2026. 

### Official description

YosemiteCrew provides organization-based service and task management. In the source-reported affected main and dev snapshots, YosemiteCrew's service and PMS task-library/template routes omit organization and permission checks. `authorizeCognito` in `apps/backend/src/middlewares/auth.ts` sets the authenticated user's ID but does not provide the `withOrgPermissions()` and `requirePermission(...)` checks used by protected siblings. In `apps/backend/src/routers/service.router.ts`, `PATCH /fhir/v1/service/:id` and `DELETE /fhir/v1/service/:id` are authentication-only, while `GET /fhir/v1/service/:id` has no authentication middleware. The trace through `apps/backend/src/controllers/web/service.controller.ts` to `apps/backend/src/services/service.service.ts` passes a global record ID into `ServiceModel.findById(oid)` without an `organisationId` filter. In `apps/backend/src/routers/task.router.ts`, `PUT /v1/task/pms/library/:libraryId`, `POST /v1/task/pms/templates`, `PATCH /v1/task/pms/templates/:templateId` and `DELETE /v1/task/pms/templates/:templateId` likewise lack organization/role enforcement. Any registered platform user, including a patient/companion-app account, can modify or delete another organization's service catalogue and PMS task-library/template data, affecting bookings and billing; service records can additionally be read without authentication. An earlier security change protected create routes but left these sibling operations exposed. A fixed release cannot be established from the available evidence.

Weakness: CWE-862 (Missing Authorization), CWE-639 (Authorization Bypass Through User-Controlled Key)

## Which versions are affected by CVE-2026-59979?


## How do I fix CVE-2026-59979?

No fix has been published for CVE-2026-59979 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-59979 being exploited?

There is no known exploitation of CVE-2026-59979 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-59979 and fix it if it is affected.

What it is: CVE-2026-59979 is a high-severity vulnerability in YosemiteCrew Yosemite-Crew, published on 28 Oct 2026. 
Exploitation: There is no known exploitation of CVE-2026-59979 in the wild and no public exploit code.

Affected product: YosemiteCrew Yosemite-Crew. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-59979/ (Markdown: https://insights.sbomify.com/CVE-2026-59979/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-59979
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-59979
- OSV: https://osv.dev/vulnerability/CVE-2026-59979

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-59979/
Summaries are generated and may contain mistakes; the official description above is the record.
