Skip to main content

Actual Sync Server CVE-2026-49229

HIGH
Insufficient Session Expiration (CWE-613)
2026-06-22 https://github.com/actualbudget/actual GHSA-cq9c-6w48-qmfg
8.3
CVSS 3.1 · Vendor: https://github.com/actualbudget/actual
Share

Severity by source

Vendor (https://github.com/actualbudget/actual) PRIMARY
8.3 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
vuln.today AI
8.3 HIGH

Network-reachable API, low complexity replay, requires a previously issued user token (PR:L); high confidentiality/integrity over budget data, low availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/actualbudget/actual).

CVSS VectorVendor: https://github.com/actualbudget/actual

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

Lifecycle Timeline

2
Source Code Evidence Fetched
Jun 23, 2026 - 00:00 vuln.today
Analysis Generated
Jun 23, 2026 - 00:00 vuln.today

DescriptionCVE.org

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.

AnalysisAI

Session persistence flaw in @actual-app/sync-server through 26.5.2 lets disabled OpenID users retain authenticated access because session validation never re-checks the users.enabled flag. With the default token_expiration of 'never', a previously issued token continues to authorize sync and admin API calls indefinitely after an administrator disables the account. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Legitimate OpenID login as future-disabled user
Delivery
Capture X-Actual-Token from response
Exploit
Admin disables the account via PATCH /admin/users
Execution
Replay stale token against validateSessionMiddleware routes
Impact
Continue sync and admin operations as disabled user

Vulnerability AssessmentAI

Exploitation Requires (1) the sync-server deployed in OpenID multi-user mode, (2) the attacker holding a valid Actual session token issued before account disablement (i.e. … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment CVSS 3.1 of 8.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L) reflects a network-reachable, low-complexity bypass that requires the attacker to already hold a valid pre-disablement token (PR:L). … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario A non-admin OpenID user logs into a self-hosted Actual server and captures their X-Actual-Token. The administrator later disables the account through PATCH /admin/users with enabled:false; the user (or anyone who has the token) replays the same token against /sync/list-user-files or /account/validate and continues to read and mutate budget data indefinitely under the default never-expire setting. …
Remediation Vendor-released patch: upgrade @actual-app/sync-server to 26.6.0 or later, which is the fixed version per the GHSA advisory at https://github.com/actualbudget/actual/security/advisories/GHSA-cq9c-6w48-qmfg. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours: Audit disabled user accounts in your @actual-app deployment; identify which used OpenID authentication and review their last API activity. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

CVE-2026-49229 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy