CVE-2026-49229: @actual-app/sync-server Disabled OpenID Users Keep Access Vulnerability

HIGH
Advisory Identifier: GHSA-cq9c-6w48-qmfg
CVSS 8.3
CWE-613
Published
Advisory Summary

CVE-2026-49229 is a HIGH (CVSS 8.3) disabled openid users keep access vulnerability (CWE-613: Insufficient Session Expiration) affecting @actual-app/sync-server libraries in the npm ecosystem. The issue involves disabled openid users keep access through existing session tokens. Remediation is available by upgrading affected packages to version 26.6.0.

CVE-2026-49229 at a Glance

CVE Identifier CVE-2026-49229
GHSA Identifier GHSA-cq9c-6w48-qmfg
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product @actual-app/sync-server
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2026-49229

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.6.0
npm install @actual-app/sync-server@26.6.0
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-49229, 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.6.0), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". 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

### Summary In OpenID multi-user mode, disabling a user only blocks future OpenID login for that identity. Existing Actual session tokens for the disabled user remain valid, so the user can continue calling authenticated server endpoints after an administrator has disabled the account. ### Details The disabled-user check is present during OpenID login finalization. Existing users are only accepted when the matching row has `enabled = 1`, and a disabled row causes the OpenID grant to fail before a new session token is created. ```ts // packages/sync-server/src/accounts/openid.ts:284-291 const { id: userIdFromDb, display_name: displayName } = accountDb.first( 'SELECT id, display_name FROM users WHERE user_name = ? and enabled = 1', [identity], ) || {}; if (userIdFromDb == null) { throw new Error('openid-grant-failed'); } ``` The shared session validation path does not perform the same enabled-user check. It accepts any existing token row that has not expired, then returns the session object to every route protected by `validateSessionMiddleware`. ```ts // packages/sync-server/src/util/validate-user.ts:10-41 export function validateSession(req: Request, res: Response) { let { token } = req.body || {}; if (!token) { token = req.headers['x-actual-token']; } const session = getSession(token); ... return session; } ``` This means account disablement and session authorization diverge: ```text OpenID login path: users.enabled must be 1 Existing session path: token exists and is not expired; users.enabled is not checked ``` The default token expiration setting is `never`, so this is not just a short race after disablement on default deployments. ```js // packages/sync-server/src/load-config.js:260-264 token_expiration: { doc: 'Token expiration time.', format: 'tokenExpiration', default: 'never', env: 'ACTUAL_TOKEN_EXPIRATION', }, ``` Admins can change a user's enabled state through the user update route, but that update does not delete the user's existing sessions. After the update, the old token still satisfies `validateSession`. ```js // packages/sync-server/src/app-admin.js:91-101 app.patch('/users', validateSessionMiddleware, async (req, res) => { if (!isAdmin(res.locals.user_id)) { ... } const { id, userName, role, displayName, enabled } = req.body || {}; ``` ```ts // packages/sync-server/src/services/user-service.ts:98-102 getAccountDb().mutate( 'UPDATE users SET user_name = ?, display_name = ?, enabled = ?, role = ? WHERE id = ?', [userName, displayName, enabled, roleId, userId], ); ``` Authenticated server features then continue to trust that session. For example, the sync API installs `validateSessionMiddleware` for the whole router, so a disabled user can keep using any sync operation that their still-valid session and existing file ownership/access allow. ```ts // packages/sync-server/src/app-sync.ts:37-39 const app = express(); app.use(validateSessionMiddleware); app.use(errorMiddleware); ``` This is distinct from the previously published cross-user sync authorization issue: the attacker does not need to access another user's file ID. The bypass is that a disabled user's own session remains authorized after account disablement. ### PoC 1. Run an Actual Sync Server in OpenID multi-user mode with `@actual-app/sync-server` 26.5.0. Use the default token expiration setting, or any setting where the token has not expired yet. 2. Log in as a non-admin OpenID user and save the returned Actual session token. 3. As an admin, disable that same user through `PATCH /admin/users` by sending `enabled: false`. 4. Reuse the old token against a protected endpoint. Example success check: ```bash curl -s https://actual.example.com/account/validate \ -H 'X-Actual-Token: <disabled_user_existing_token>' ``` Expected result on the affected code path: the request is still treated as authenticated and returns the disabled user's account/session information instead of `401` or `403`. A sync-facing check uses the same session validation primitive: ```bash curl -s https://actual.example.com/sync/list-user-files \ -H 'X-Actual-Token: <disabled_user_existing_token>' ``` Expected result on the affected code path: the disabled user can still list and operate on budget files that the stale session is otherwise allowed to access. ### Impact A disabled OpenID user can keep post-authentication access until the session row is deleted or expires. With the default `token_expiration: never`, this can persist indefinitely. For a disabled basic user, the confirmed impact is continued access to that user's own budgets and any budgets shared with that user, including sensitive financial data and allowed mutations. For a disabled admin user, the impact is broader because the existing token can still satisfy admin role checks; that condition preserves administrative access after the account was disabled. The missing rule is that session validation should reject disabled users, and disabling or deleting a user should revoke that user's existing sessions.

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

1 component(s)
Fixed Versions:
26.6.0
Product / Package Ecosystem Affected Versions Fixed Version
@actual-app/sync-server
npm
< 26.6.0
26.6.0

References

Frequently Asked Questions

What is CVE-2026-49229?
CVE-2026-49229 is a security vulnerability in @actual-app/sync-server involving Disabled OpenID users keep access through existing session tokens under CWE-613: Insufficient Session Expiration.
Which @actual-app/sync-server versions are affected?
Affected versions include releases prior to 26.6.0 across affected packages: @actual-app/sync-server.
What version fixes CVE-2026-49229?
Upgrading to 26.6.0 (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.6.0. Upgrade your dependency to 26.6.0 or later.
What is the CVSS score of CVE-2026-49229?
CVE-2026-49229 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2026-49229?
CVE-2026-49229 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check npm dependencies for CVE-2026-49229?
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-cq9c-6w48-qmfg",
  "modified" : "2026-06-22T23:19:56Z",
  "published" : "2026-06-22T23:19:56Z",
  "aliases" : [ "CVE-2026-49229" ],
  "summary" : "@actual-app/sync-server: Disabled OpenID users keep access through existing session tokens",
  "details" : "### Summary\n\nIn OpenID multi-user mode, disabling a user only blocks future OpenID login for that identity. Existing Actual session tokens for the disabled user remain valid, so the user can continue calling authenticated server endpoints after an administrator has disabled the account.\n\n### Details\n\nThe disabled-user check is present during OpenID login finalization. Existing users are only accepted when the matching row has `enabled = 1`, and a disabled row causes the OpenID grant to fail before a new session token is created.\n\n```ts\n// packages/sync-server/src/accounts/openid.ts:284-291\nconst { id: userIdFromDb, display_name: displayName } =\n  accountDb.first(\n    'SELECT id, display_name FROM users WHERE user_name = ? and enabled = 1',\n    [identity],\n  ) || {};\n\nif (userIdFromDb == null) {\n  throw new Error('openid-grant-failed');\n}\n```\n\nThe shared session validation path does not perform the same enabled-user check. It accepts any existing token row that has not expired, then returns the session object to every route protected by `validateSessionMiddleware`.\n\n```ts\n// packages/sync-server/src/util/validate-user.ts:10-41\nexport function validateSession(req: Request, res: Response) {\n  let { token } = req.body || {};\n  if (!token) {\n    token = req.headers['x-actual-token'];\n  }\n\n  const session = getSession(token);\n  ...\n  return session;\n}\n```\n\nThis means account disablement and session authorization diverge:\n\n```text\nOpenID login path: users.enabled must be 1\nExisting session path: token exists and is not expired; users.enabled is not checked\n```\n\nThe default token expiration setting is `never`, so this is not just a short race after disablement on default deployments.\n\n```js\n// packages/sync-server/src/load-config.js:260-264\ntoken_expiration: {\n  doc: 'Token expiration time.',\n  format: 'tokenExpiration',\n  default: 'never',\n  env: 'ACTUAL_TOKEN_EXPIRATION',\n},\n```\n\nAdmins can change a user's enabled state through the user update route, but that update does not delete the user's existing sessions. After the update, the old token still satisfies `validateSession`.\n\n```js\n// packages/sync-server/src/app-admin.js:91-101\napp.patch('/users', validateSessionMiddleware, async (req, res) => {\n  if (!isAdmin(res.locals.user_id)) {\n    ...\n  }\n\n  const { id, userName, role, displayName, enabled } = req.body || {};\n```\n\n```ts\n// packages/sync-server/src/services/user-service.ts:98-102\ngetAccountDb().mutate(\n  'UPDATE users SET user_name = ?, display_name = ?, enabled = ?, role = ? WHERE id = ?',\n  [userName, displayName, enabled, roleId, userId],\n);\n```\n\nAuthenticated server features then continue to trust that session. For example, the sync API installs `validateSessionMiddleware` for the whole router, so a disabled user can keep using any sync operation that their still-valid session and existing file ownership/access allow.\n\n```ts\n// packages/sync-server/src/app-sync.ts:37-39\nconst app = express();\napp.use(validateSessionMiddleware);\napp.use(errorMiddleware);\n```\n\nThis is distinct from the previously published cross-user sync authorization issue: the attacker does not need to access another user's file ID. The bypass is that a disabled user's own session remains authorized after account disablement.\n\n### PoC\n\n1. Run an Actual Sync Server in OpenID multi-user mode with `@actual-app/sync-server` 26.5.0. Use the default token expiration setting, or any setting where the token has not expired yet.\n2. Log in as a non-admin OpenID user and save the returned Actual session token.\n3. As an admin, disable that same user through `PATCH /admin/users` by sending `enabled: false`.\n4. Reuse the old token against a protected endpoint.\n\nExample success check:\n\n```bash\ncurl -s https://actual.example.com/account/validate \\\n  -H 'X-Actual-Token: <disabled_user_existing_token>'\n```\n\nExpected result on the affected code path: the request is still treated as authenticated and returns the disabled user's account/session information instead of `401` or `403`.\n\nA sync-facing check uses the same session validation primitive:\n\n```bash\ncurl -s https://actual.example.com/sync/list-user-files \\\n  -H 'X-Actual-Token: <disabled_user_existing_token>'\n```\n\nExpected result on the affected code path: the disabled user can still list and operate on budget files that the stale session is otherwise allowed to access.\n\n### Impact\n\nA disabled OpenID user can keep post-authentication access until the session row is deleted or expires. With the default `token_expiration: never`, this can persist indefinitely.\n\nFor a disabled basic user, the confirmed impact is continued access to that user's own budgets and any budgets shared with that user, including sensitive financial data and allowed mutations. For a disabled admin user, the impact is broader because the existing token can still satisfy admin role checks; that condition preserves administrative access after the account was disabled.\n\nThe missing rule is that session validation should reject disabled users, and disabling or deleting a user should revoke that user's existing sessions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@actual-app/sync-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "26.6.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 26.5.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/actualbudget/actual/security/advisories/GHSA-cq9c-6w48-qmfg"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/actualbudget/actual"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-22T23:19:56Z",
    "nvd_published_at" : null
  }
}