Skip to content
Heist/ feed
Back to feed
High

Midday Missing Owner Check on Team Deletion

Type: advisorySources: OSV

Midday allows any member of a team to delete it. The delete procedure in apps/api/src/trpc/routers/team.ts authorises the caller with the team-access helper, which returns true for every row in the team-membership table irrespective of the role it records, and the data-layer function it calls re-checks the same helper and nothing else. The neighbouring procedures that remove or update a member in the same router each resolve the caller's role and refuse the request unless it is owner, so the check exists in the file and is not applied to deletion. Member is the role an invited user receives, so any invitee can remove the team and every record scoped to it, and the deletion enqueues the cleanup job with the stored bank-connection tokens, which the job then uses against the connected providers. The update procedure in the same router carries no role check either.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-81035
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 22:26 UTC · Revision 1

Source evidence

Midday Missing Owner Check on Team Deletion

core-osv · Original source

Published 26 Aug 2026, 15:45 UTC

Midday allows any member of a team to delete it. The delete procedure in apps/api/src/trpc/routers/team.ts authorises the caller with the team-access helper, which returns true for every row in the team-membership table irrespective of the role it records, and the data-layer function it calls re-checks the same helper and nothing else. The neighbouring procedures that remove or update a member in the same router each resolve the caller's role and refuse the request unless it is owner, so the check exists in the file and is not applied to deletion. Member is the role an invited user receives, so any invitee can remove the team and every record scoped to it, and the deletion enqueues the cleanup job with the stored bank-connection tokens, which the job then uses against the connected providers. The update procedure in the same router carries no role check either.

osv:CVE-2026-81035
Complete source record
{
  "id": "c8d519e5bb4396930715a943dd82f1ac27e43642d35b73ce2792b367aff56aaf",
  "url": "https://osv.dev/vulnerability/CVE-2026-81035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Midday Missing Owner Check on Team Deletion",
    "summary": "Midday allows any member of a team to delete it. The delete procedure in apps/api/src/trpc/routers/team.ts authorises the caller with the team-access helper, which returns true for every row in the team-membership table irrespective of the role it records, and the data-layer function it calls re-checks the same helper and nothing else. The neighbouring procedures that remove or update a member in the same router each resolve the caller's role and refuse the request unless it is owner, so the check exists in the file and is not applied to deletion. Member is the role an invited user receives, so any invitee can remove the team and every record scoped to it, and the deletion enqueues the cleanup job with the stored bank-connection tokens, which the job then uses against the connected providers. The update procedure in the same router carries no role check either.",
    "evidence": "osv:CVE-2026-81035",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-81035",
      "aliases": [
        "CVE-2026-81035"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/midday-ai/midday",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e5f45ed0d49cdb34576373623c4579b72daa74c1"
                },
                {
                  "last_affected": "e5f45ed0d49cdb34576373623c4579b72daa74c1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "e5f45ed0d49cdb34576373623c4579b72daa74c1"
                      },
                      {
                        "last_affected": "e5f45ed0d49cdb34576373623c4579b72daa74c1"
                      }
                    ],
                    "source": "AFFECTED_FIELD_GIT",
                    "strategy": "GitCommit"
                  }
                ]
              }
            }
          ],
          "versions": [
            "e5f45ed0d49cdb34576373623c4579b72daa74c1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-81035.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.945560450Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81035.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-81035",
        "https://www.vulncheck.com/advisories/midday-missing-owner-check-on-team-deletion",
        "https://github.com/midday-ai/midday/issues/890",
        "https://github.com/midday-ai/midday",
        "https://github.com/midday-ai/midday/blob/e5f45ed0d49cdb34576373623c4579b72daa74c1/apps/api/src/trpc/routers/team.ts"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-862"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81035.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-81035",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507616,
  "published_at": "2026-08-26T15:45:02.234+00:00"
}