AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-133469: Xen Orchestra: Empty-object login token

criticalCVSS 3.1 9.8GHSA-2r3w-c2vx-fv5g

Xen Orchestra before 6.9.2 (stable) and 6.10.1 (latest) lets an unauthenticated attacker log in as an existing user, often an admin, with one crafted cookie. The fixed xo-server builds are 5.211.2 and 5.213.1. The vendor bulletin lists attacker IP addresses to block, so check exposed instances now.

Published Nov 23, 2026 · Analysis Nov 23, 2026

What an attacker can do

The REST API reads the authenticationToken cookie with cookie-parser, which turns a value starting with j: into parsed JSON. The cookie j:{} becomes an empty object. The signIn path has no type check on the token, so the object reaches the token provider. An empty object is truthy and passes the check. The token collection then treats it as a lookup with no filter and returns its first stored token. The provider signs the request in as that token's owner if the token is unexpired.

The authenticated route /rest/v0/users/me/authentication_tokens then returns reusable login token IDs. The attacker does not choose whose token is returned, and the attack fails if the first token is expired or its user was deleted. In the reporter's test one returned ID worked as an admin account. An admin on Xen Orchestra can run arbitrary code on managed pools and take over XCP-ng hosts as root. No credentials and no user interaction are needed, only network access to the web interface.

Who is affected

Xen Orchestra before 6.9.2 on the stable channel and before 6.10.1 on the latest channel, including the Xen Orchestra Appliance (XOA). The npm package xo-server is affected up to 5.7.4 in the advisory data. The vendor lists xo-server 5.211.2 (stable) and 5.213.1 (latest) as fixed. Source installs are affected until updated to the latest master.

Check a source install:

npm ls xo-server

On XOA, the version appears in the web interface under Settings, Update. Internet-facing instances are at greatest risk.

xo-server

Ecosystem
npm
Affected
<= 5.7.4
Fixed in
No patched version yet
Check
npm ls xo-server

How to fix it

Update to Xen Orchestra 6.9.2 (stable) or 6.10.1 (latest), which carry xo-server 5.211.2 and 5.213.1. For a source install, update to the latest master; the fix is commit 50166fe from pull request 10748. It rejects empty or non-string token IDs before any lookup and builds the query only from validated fields. The npm advisory data lists no patched version, so use the vendor's versions.

Mitigations from the vendor bulletin:

  • Take the instance off the internet and put it on a dedicated management network.
  • Block requests with the cookie value authenticationToken=j:{} or its URL-encoded form at a WAF or reverse proxy. The bulletin warns that rules like this can be bypassed with other formats.
  • Block the listed attacker addresses: 91.211.251.112, 193.148.56.72, 37.221.208.216, 45.66.35.11, 64.65.0.120, 64.65.62.160, 89.47.51.90 and 92.60.37.247.

If you suspect compromise, rotate the root account, pool secret, user, proxy, backup remote and mail server passwords, and OTP secrets. If compromise is confirmed, reinstall: the vendor says cleanup alone cannot guarantee backdoors are gone.

How to tell if you were hit

Search reverse-proxy and web logs for requests with the cookie authenticationToken=j:{} or j:%7B%7D, and for traffic from the attacker addresses in the vendor bulletin. Check calls to /rest/v0/users/me/authentication_tokens that came from unfamiliar addresses. Review the authentication tokens list for tokens you did not create. Look for new users, new backup jobs or remote targets, and unexpected activity on XCP-ng hosts and pools.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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: index.mjs (req.cookies.token → isValidAuthenticationToken), xo-mixins/rest-api.mjs and @xen-orchestra/rest-api middleware (cookies.authenticationToken ?? cookies.token → authenticateUser({ token })). cookie-parser turns j:-prefixed cookie values into parsed JSON, so authenticationToken=j:{} yields {}.

Proof of concept

The object cookie returned 200 with unexpired token IDs, and one ID worked on a fresh request as an admin account. The attacker does not choose which token the empty-object lookup returns. Authentication succeeds only if the token returned first is unexpired and belongs to an existing user; if it is expired or its user was deleted, the request fails without trying another token.

curl -b 'authenticationToken=j:{}' https://<ip>/rest/v0/users

Impact

An adversary can bypass authentication and perform actions with 'Admin' privilege. Xen Orchestra compromise can lead to arbitrary code execution on managed pools and a full XCP-ng node takeover as root.

Credited to mad31k.

Questions

Which Xen Orchestra versions fix CVE-2026-133469?

Xen Orchestra 6.9.2 on the stable channel and 6.10.1 on the latest channel. The matching xo-server builds are 5.211.2 and 5.213.1. Source installs should update to the latest master.

Can the attacker pick which account they become?

No. The empty-object lookup returns the first stored token. Login works only if that token is unexpired and its user exists. In testing, that gave an admin account, so assume the worst.

Is it exploited in the wild?

The vendor bulletin tells you to block listed threat-actor IP addresses and to rotate secrets if you suspect compromise, which points to real attacker activity. It does not state exploitation outright. Hunt for the cookie in your logs.

Does a WAF rule fully protect me?

No. Blocking the cookie values j:{} and j:%7B%7D helps, but the vendor warns that other formats can bypass regex rules. Upgrade, and keep the instance off the internet.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

Coverage on the Beam blog