- Severity: CRITICAL
- CVE: CVE-2026-133469
- Ecosystems: npm
- Packages: xo-server
### Summary
REST cookie parsing turns `authenticationToken=j:%7B%7D` into `{}`. REST authentication passes that object to the XO token provider without requiring a string. The token collection treats `{}` as an unfiltered lookup and returns its first token; the provider authenticates as that token’s owner if it is unexpired. The authenticated `/rest/v0/users/me/authentication_tokens` route then returns reusable login token IDs.
### Details
1. In `packages/xo-server/src/api/session.mjs`, function `signIn(credentials)` has **no `params` schema** (unlike the deprecated `signInWithToken`, which declares `token: { type: ‘string’ }`), so `credentials.token` can be any JSON value.
2. `packages/xo-server/src/xo-mixins/authentication.mjs`, token provider:
“`js
this.registerAuthenticationProvider(async ({ token: tokenId }, { ip } = {}) => {
if (!tokenId) return // {} is truthy → passes
const token = await app.getAuthenticationToken(tokenId)
…
return { bypassOtp: true, expiration: token.expiration, userId: token.user_id }
“`
3. `getAuthenticationToken(properties)` explicitly accepts an object, and `_getAuthenticationToken(id, properties)` does `this._tokens.first(properties ?? id)`.
4. `Collection#first(properties)` -> `_get(properties)`; in `collection/redis.mjs`, `if (isEmpty(properties)) return redis.sMembers(prefix + ‘_ids’)…` → **all tokens**. Non-empty objects on indexed fields (`user_id`, `client_id`) do an index lookup → token of the chosen user.
5. HTTP paths: `in…
Source: GitHub Security Advisories · 2026-11-23