Lookup for vulnerable packages by Package URL.

Purlpkg:npm/%40actual-app/sync-server@26.3.0-nightly.20260217
Typenpm
Namespace@actual-app
Namesync-server
Version26.3.0-nightly.20260217
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version26.4.0
Latest_non_vulnerable_version26.4.0
Affected_by_vulnerabilities
0
url VCID-abzw-asqh-pbbb
vulnerability_id VCID-abzw-asqh-pbbb
summary
Actual has Privilege Escalation via 'change-password' Endpoint on OpenID-Migrated Servers
### Summary

Any authenticated user (including `BASIC` role) can escalate to `ADMIN` on servers migrated from password authentication to OpenID Connect. Three weaknesses combine: `POST /account/change-password` has no authorization check, allowing any session to overwrite the password hash; the inactive password `auth` row is never removed on migration; and the login endpoint accepts a client-supplied `loginMethod` that bypasses the server's active auth configuration. Together these allow an attacker to set a known password and authenticate as the anonymous admin account created during the multiuser migration.

---

### Details

**`packages/sync-server/src/app-account.js:120-132`** — the `/account/change-password` route validates only that a session exists. No admin role check is performed

```js
app.post('/change-password', (req, res) => {
  const session = validateSession(req, res); // only checks token validity
  if (!session) return;
  const { error } = changePassword(req.body.password); // no isAdmin() check
```

**`packages/sync-server/src/accounts/password.js:113-125`** — `changePassword()` updates the hash with no current-password confirmation:

```js
export function changePassword(newPassword) {
  accountDb.mutate("UPDATE auth SET extra_data = ? WHERE method = 'password'", [hashed]);
}
```

**`packages/sync-server/src/accounts/password.js:56-62`** — `loginWithPassword()` always authenticates as the user with `user_name = ''`, which is created by the multiuser migration with `role = 'ADMIN'`:

```js
const sessionRow = accountDb.first(
  'SELECT * FROM sessions WHERE auth_method = ?', ['password']
);
```

**`packages/sync-server/src/account-db.js:56-63`** — a client can force the `password` login method regardless of server configuration by sending `loginMethod` in the request body:

```js
if (req.body.loginMethod && config.get('allowedLoginMethods').includes(req.body.loginMethod)) {
  return req.body.loginMethod;
}
```

When a server is migrated from password → OpenID via `enableOpenID()`, the password row is set to `active = 0` but **never deleted**, leaving it available for exploitation.

---

### PoC

**Prerequisites:** Server originally bootstrapped with password auth, then switched to OpenID. Default `allowedLoginMethods` configuration (includes `password`). Attacker has any valid OpenID session token (any role).

```bash
# Step 1 — overwrite the password hash using a BASIC-role session
curl -s -X POST https://<host>/account/change-password \
  -H "Content-Type: application/json" \
  -H "X-Actual-Token: <any_valid_session_token>" \
  -d '{"password": "attacker123"}'
# → {"status":"ok","data":{}}

# Step 2 — log in via password method to obtain an ADMIN session
curl -s -X POST https://<host>/account/login \
  -H "Content-Type: application/json" \
  -d '{"loginMethod": "password", "password": "attacker123"}'
# → {"status":"ok","data":{"token":"<admin_token>"}}
```

The returned token belongs to the `user_name = ''` admin account (created by `1719409568000-multiuser.js`).

Verify admin access:
```bash
curl -s https://<host>/account/validate \
  -H "X-Actual-Token: <admin_token>"
# → {"status":"ok","data":{"permission":"ADMIN", ...}}
```

---

### Impact

**Privilege escalation** — any authenticated user can gain full `ADMIN` access on affected deployments. An ADMIN can manage all users, access all budget files regardless of ownership, modify file access controls, and change server configuration.

Affected deployments: multi-user servers running OpenID Connect that were previously configured with password authentication. Servers bootstrapped exclusively with OpenID from initial setup are not affected (no password row exists in the `auth` table).

---

### Recommendations

**1. Restrict `POST /account/change-password` to password-authenticated sessions only**
(`packages/sync-server/src/app-account.js`)

The endpoint should reject requests from sessions that were authenticated via OpenID. The active auth method can be checked against the session's `auth_method` field or by querying the `auth` table for the currently active method. If the server is running in OpenID mode, this endpoint should return `403 Forbidden`.

**2. Require current-password confirmation before accepting a new password**
(`packages/sync-server/src/accounts/password.js`)

`changePassword()` should accept the current password as a parameter and verify it against the stored hash before applying the update. This prevents any session (even a legitimate password session) from silently overwriting the credential without proving possession of the existing one.

**3. Enforce `active` status and remove client control over login method selection**
(`packages/sync-server/src/account-db.js` — `getLoginMethod()`)

Two issues exist in `getLoginMethod()`: (a) a client can supply `loginMethod` in the request body to select any method listed in `allowedLoginMethods`, regardless of whether it is currently active on the server; (b) the function does not check the `active` column, so an administratively disabled method (e.g. `password` after migrating to OpenID) remains accessible. The fix is to determine the permitted method server-side from `WHERE active = 1` in the `auth` table and ignore any client-supplied `loginMethod` override entirely. Servers intentionally running both methods simultaneously can be supported by allowing multiple `active = 1` rows rather than relying on client input.

**4. Immediate mitigation for existing deployments (OpenID-only servers)**

Administrators who have fully migrated to OpenID and do not need password auth can remove the orphaned row:

```sql
DELETE FROM auth WHERE method = 'password';
```

####

The three weaknesses form a single, sequential exploit chain — none produces privilege escalation on its own:

Missing authorization on POST /change-password — allows overwriting a password hash, but only matters if there is an orphaned row to target.
Orphaned password row persisting after migration — provides the target row, but is harmless without the ability to authenticate using it.
Client-controlled loginMethod: "password" — allows forcing password-based auth, but is useless without a known hash established by step 1.

All three must be chained in sequence to achieve the impact. No single weakness independently results in privilege escalation, which under CVE CNA rule 4.1.2 means they should not each be treated as standalone vulnerabilities.
The single root cause is the missing authorization check on /change-password; the other two are preconditions that make it exploitable. A single CVE reflecting that root cause is the appropriate representation — splitting them would falsely imply each carries independent risk.
references
0
reference_url https://actualbudget.org/blog/release-26.4.0
reference_id
reference_type
scores
0
value 8.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2026-04-25T01:43:46Z/
url https://actualbudget.org/blog/release-26.4.0
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-33318
reference_id
reference_type
scores
0
value 0.00041
scoring_system epss
scoring_elements 0.12796
published_at 2026-06-06T12:55:00Z
1
value 0.00041
scoring_system epss
scoring_elements 0.12757
published_at 2026-06-07T12:55:00Z
2
value 0.00041
scoring_system epss
scoring_elements 0.12674
published_at 2026-06-08T12:55:00Z
3
value 0.00041
scoring_system epss
scoring_elements 0.12791
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-33318
2
reference_url https://github.com/actualbudget/actual
reference_id
reference_type
scores
0
value 8.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/actualbudget/actual
3
reference_url https://github.com/actualbudget/actual/security/advisories/GHSA-prp4-2f49-fcgp
reference_id
reference_type
scores
0
value 8.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2026-04-25T01:43:46Z/
url https://github.com/actualbudget/actual/security/advisories/GHSA-prp4-2f49-fcgp
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-33318
reference_id
reference_type
scores
0
value 8.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-33318
5
reference_url https://github.com/advisories/GHSA-prp4-2f49-fcgp
reference_id GHSA-prp4-2f49-fcgp
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-prp4-2f49-fcgp
fixed_packages
0
url pkg:npm/%40actual-app/sync-server@26.4.0
purl pkg:npm/%40actual-app/sync-server@26.4.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540actual-app/sync-server@26.4.0
aliases CVE-2026-33318, GHSA-prp4-2f49-fcgp
risk_score 4.0
exploitability 0.5
weighted_severity 8.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-abzw-asqh-pbbb
1
url VCID-u42x-ubzp-8uc7
vulnerability_id VCID-u42x-ubzp-8uc7
summary
Actual Sync Server has an Authenticated Path Traversal
Actual Sync Server allows authenticated users to upload files through `POST /sync/upload-user-file`. In versions prior to 26.3.0, improper validation of the user-controlled `x-actual-file-id` header means that traversal segments (`../`) can escape the intended directory and write files outside `userFiles`.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-3089
reference_id
reference_type
scores
0
value 0.00018
scoring_system epss
scoring_elements 0.0484
published_at 2026-06-08T12:55:00Z
1
value 0.00018
scoring_system epss
scoring_elements 0.04878
published_at 2026-06-07T12:55:00Z
2
value 0.00018
scoring_system epss
scoring_elements 0.04886
published_at 2026-06-06T12:55:00Z
3
value 0.00018
scoring_system epss
scoring_elements 0.04899
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-3089
1
reference_url https://fluidattacks.com/advisories/fugue
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-09T14:54:20Z/
url https://fluidattacks.com/advisories/fugue
2
reference_url https://github.com/actualbudget/actual
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-09T14:54:20Z/
url https://github.com/actualbudget/actual
3
reference_url https://github.com/actualbudget/actual/commit/18072e1d8b5281db43ded8b21433ee177bae9dfa
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/actualbudget/actual/commit/18072e1d8b5281db43ded8b21433ee177bae9dfa
4
reference_url https://github.com/actualbudget/actual/pull/7067
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-09T14:54:20Z/
url https://github.com/actualbudget/actual/pull/7067
5
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-3089
reference_id CVE-2026-3089
reference_type
scores
0
value 5.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-3089
6
reference_url https://github.com/actualbudget/actual/security/advisories/GHSA-27vg-33gh-4hwg
reference_id GHSA-27vg-33gh-4hwg
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
1
value 5.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/actualbudget/actual/security/advisories/GHSA-27vg-33gh-4hwg
7
reference_url https://github.com/advisories/GHSA-27vg-33gh-4hwg
reference_id GHSA-27vg-33gh-4hwg
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-27vg-33gh-4hwg
fixed_packages
0
url pkg:npm/%40actual-app/sync-server@26.3.0
purl pkg:npm/%40actual-app/sync-server@26.3.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-abzw-asqh-pbbb
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540actual-app/sync-server@26.3.0
aliases CVE-2026-3089, GHSA-27vg-33gh-4hwg
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-u42x-ubzp-8uc7
Fixing_vulnerabilities
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/%2540actual-app/sync-server@26.3.0-nightly.20260217