CVE-2026-27638: @actual-app/sync-server Missing Authorization Vulnerability
MODERATECVE-2026-27638 is a MODERATE missing authorization vulnerability (CWE-862: Missing Authorization) affecting @actual-app/sync-server libraries in the npm ecosystem. The issue involves missing authorization in sync endpoints allows cross-user budget file access in multi-user mode. Remediation is available by upgrading affected packages to version 26.2.1.
CVE-2026-27638 at a Glance
How to Fix CVE-2026-27638
To remediate this vulnerability, upgrade all affected @actual-app/sync-server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @actual-app/sync-server@26.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @actual-app/sync-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-27638, inspect your project dependencies using npm:
npm ls @actual-app/sync-server
Analyze the terminal output to locate any version of @actual-app/sync-server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.2.1), your application is affected.
Note: The npm ls @actual-app/sync-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In @actual-app/sync-server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-27638 Affected @actual-app/sync-server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@actual-app/sync-server
|
npm |
< 26.2.1
|
26.2.1
|
References
Frequently Asked Questions
What is CVE-2026-27638?
Which @actual-app/sync-server versions are affected?
What version fixes CVE-2026-27638?
Is @actual-app/sync-server affected?
What CWE is associated with CVE-2026-27638?
How can I check npm dependencies for CVE-2026-27638?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qmjj-p7m9-wjrv",
"modified" : "2026-02-27T19:29:46Z",
"published" : "2026-02-27T19:29:46Z",
"aliases" : [ "CVE-2026-27638" ],
"summary" : "@actual-app/sync-server: Missing authorization in sync endpoints allows cross-user budget file access in multi-user mode",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@actual-app/sync-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "26.2.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 26.2.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/actualbudget/actual/security/advisories/GHSA-qmjj-p7m9-wjrv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27638"
}, {
"type" : "WEB",
"url" : "https://github.com/actualbudget/actual/commit/9966c024cb75f57943193cac8e42f401efed9d08"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/actualbudget/actual"
}, {
"type" : "WEB",
"url" : "https://github.com/actualbudget/actual/releases/tag/v26.2.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-27T19:29:46Z",
"nvd_published_at" : "2026-02-26T23:16:34Z"
}
}