A cookie holding an empty JSON object is enough to sign in to Xen Orchestra without credentials. The Xen Orchestra authentication bypass, tracked as CVE-2026-133469 with a CVSS 3.1 score of 9.8, hands the visitor another user's session. Vates, the vendor, says a threat actor is already exploiting it.
No account or privilege is required, but the attack has limits. The attacker must reach the Xen Orchestra web interface over the network. The server must hold at least one login token, and the token returned first must still be valid. With the empty object the attacker cannot choose whose session comes back, though Vates rates the outcome as Admin-level access.
Vates published advisory VSA-2026-062 on November 10, 2026, together with patched builds 6.9.2 and 6.10.1. The CVE record appeared on November 23. Three days earlier a GitHub advisory, GHSA-2r3w-c2vx-fv5g, had laid out the vulnerable code path step by step.
Filip Magic and Christoffer Olsen of TDC NET Security found the flaw, according to the advisory.
What Xen Orchestra controls
Xen Orchestra is the management console for XCP-ng and XenServer virtualization pools. It offers a web interface, a command-line client and a REST API, and it needs no agent on the hosts. Administrators use it to create, migrate and back up virtual machines (VMs) across datacenters.
The console acts on the hypervisors with full privileges. According to Vates, Xen Orchestra sends its requests to XAPI, the XCP-ng control plane, with the fully privileged pool-admin role.
Xen Orchestra's GitHub repository had 1,004 stars on November 23. The community-built container image ronivay/xen-orchestra showed more than 2.79 million pulls on Docker Hub the same day. Neither figure shows how many installations are publicly reachable. Most are not exposed to the public internet, Vates co-founder Julien Fontanet, who posts as julien-f, wrote on the project forum.
A cookie that stops being a string
A browser cookie carries the Xen Orchestra login token. After a web sign-in the server writes the token's ID into a cookie named token. REST clients may send the same ID as authenticationToken. The application expects an opaque string in both.
xo-server, the Xen Orchestra backend, runs the cookie-parser middleware on every request. The library's documentation describes JSON cookies, values that begin with j: and are exposed as the result of JSON.parse. Xen Orchestra's lockfile pins version 1.4.7.
function JSONCookie (str) {
if (typeof str !== 'string' || str.substr(0, 2) !== 'j:') {
return undefined
}
try {
return JSON.parse(str.slice(2))
} catch (err) {
return undefined
}
}
index.js from cookie-parser 1.4.7, lines 83 to 93. A few lines below, JSONCookies swaps the cookie's string for the parsed data whenever it is truthy.
An empty object is truthy in JavaScript. A request carrying the cookie authenticationToken=j:{} therefore reaches Xen Orchestra with req.cookies.authenticationToken set to {}. The URL-encoded form j:%7B%7D produces the same object, because the underlying cookie module decodes values first.
Three checks an empty object passes
The REST API middleware in Xen Orchestra asks only whether a token is present. It never asks what type the value has.
const { cookies, headers, ip, query } = req
const { authorization } = headers
const token = cookies.authenticationToken ?? cookies.token
const hasToken = Boolean(token)
@xen-orchestra/rest-api/src/middlewares/authentication.middleware.mts, lines 51 to 55, at commit 7244027, the parent of the fix.
Boolean({}) evaluates to true, so the middleware forwards the object to authenticateUser as a token. The token provider in xo-server's authentication.mjs repeats the loose test with if (!tokenId). Past that line the object goes to the lookup function.
async _getAuthenticationToken(id, properties) {
const token = await this._tokens.first(properties ?? id)
if (token !== undefined) {
if (token.expiration > Date.now()) {
return token
}
this._tokens.remove(id)::ignoreErrors()
}
}
async getAuthenticationToken(properties) {
const id = typeof properties === 'string' ? properties : properties.id
const token = await this._getAuthenticationToken(id, properties)
if (token === undefined) {
throw noSuchAuthenticationToken(id)
}
return token
}
packages/xo-server/src/xo-mixins/authentication.mjs, lines 281 to 300, at commit 7244027. The package manifest at that commit gives the version as xo-server 5.213.0.
getAuthenticationToken in xo-server accepts either a string or an object. Given {} it reads properties.id, which is undefined, and passes the whole object on. The expression properties ?? id then hands {} to the token collection as a query.
The object form was a deliberate feature. The fix's pull request names commit 115bc8f, dated June 7, 2022, as the origin of the bug. That commit let tokens carry a description and added lookups by token ID together with the owner's ID.
An empty filter returns every token
Xen Orchestra stores tokens in Redis, and the collection layer reads an empty filter as no filter.
async _get(properties) {
const { prefix, redis } = this
if (isEmpty(properties)) {
return redis.sMembers(prefix + '_ids').then(ids => this._extract(ids))
}
packages/xo-server/src/collection/redis.mjs, lines 283 to 288, at commit 7244027.
sMembers returns the IDs of all stored tokens, and _first in collection.mjs picks the first loaded record. If that token has not expired, the provider returns its owner as the authenticated user. Vates notes in the GitHub advisory that an expired token, or one whose user was deleted, makes the request fail.
Xen Orchestra's one-time password check does not apply on this path, the code shows. The provider's result carries bypassOtp: true, and authenticateUser skips the second factor when that flag is set.
GitHub advisory GHSA-2r3w-c2vx-fv5g describes a targeted variant. A non-empty object that filters on an indexed field, such as user_id, selects the token of a chosen user.
One request, then a reusable key
Vates included a one-line proof of concept in the GitHub advisory.
curl -b 'authenticationToken=j:{}' https://<ip>/rest/v0/users
Proof of concept published by Vates in GHSA-2r3w-c2vx-fv5g.
In the test reported in the advisory, the object cookie returned HTTP 200 with unexpired token IDs. One of those IDs then worked on a fresh request as an admin account.
The route /rest/v0/users/me/authentication_tokens lists the current user's tokens, IDs included. In Xen Orchestra the ID is the credential itself, the value a browser keeps in its token cookie. An intruder who copies one no longer needs the malformed cookie. A single lookup becomes lasting access.
Xen Orchestra produces no log that reveals the unauthenticated login, according to Vates. One reason is visible in the code, where the REST middleware sets bypassTaskCreation for token logins and records no authentication task. The company advises watching HTTP traffic for the two cookie patterns instead.
The token record itself keeps a trace that the advisory does not mention. Each successful token login in xo-server writes the caller's IP address and a timestamp into the token's last_uses field, 10 entries deep. An unfamiliar address on an administrator's token deserves a second look, although behind a reverse proxy the stored address may be the proxy's own.
— AnonHaven Editorial Team
What the intruders did after logging in
Vates attributes the attacks it has seen to one threat actor. The advisory lists the actor's IP addresses and a Tor address for blocking. Host-level indicators include a VM named pivot2, VMs whose hvm_serial setting points to a file, and new files such as /etc/cron.d/zz-ustar.
A compromised console can end in a root-level takeover of XCP-ng hosts, Vates warns. In this campaign the route ran through VM import. A second advisory, VSA-2026-063, states that Xen Orchestra forwards an imported VM to XAPI without reading or modifying its ova.xml file. Crafted configuration keys such as VM.platform:hvm_serial pass through, and the advisory adds that the same actor abused that path with Admin rights from the bypass.
VSA-2026-063 is rated Important, and its status still read In progress on November 23.
Warning
CVE-2026-133469 is under active exploitation, and the related VM import weakness VSA-2026-063 has no fix yet. After a confirmed compromise Vates recommends a full reinstallation, because cleanup alone cannot guarantee that every backdoor is gone.
An XCP-ng forum user reported a break-in that used different names, files and IP addresses. None of those matched the advisory, according to the post, dated November 11. It concerns an internet-exposed source build running xo-server 5.213.0. Within about 50 minutes the intruders created two API tokens, exported the configuration and imported a small VM, the user wrote.
Two checks still produced hits for that user. The advisory's log search for serial ports mapped to a file matched, and the xo-server journal held a few related lines.
The forum post is a single, unverified report, but it fits the vendor's own caveat. Vates states that its detection methods cover this one campaign only. Missing indicators, the company cautions, do not prove a clean system.
The patch adds 12 lines and removes five
Commit 50166fe, merged on November 10, 2026, changes one production file. The rest of the diff is 252 lines of tests and a changelog entry.
@@ -16,6 +16,8 @@ const log = createLogger('xo:authentification')
const noSuchAuthenticationToken = id => noSuchObject(id, 'authenticationToken')
+const isNonEmptyString = value => typeof value === 'string' && value.length !== 0
+
export default class {
constructor(app) {
app.config.watch('authentication', config => {
@@ -51,7 +53,7 @@ export default class {
// Token authentication provider.
this.registerAuthenticationProvider(async ({ token: tokenId }, { ip } = {}) => {
- if (!tokenId) {
+ if (!isNonEmptyString(tokenId)) {
return
}
@@ -278,8 +280,13 @@ export default class {
await db.remove((await db.get()).filter(createPredicate(filter)).map(({ id }) => id))
}
- async _getAuthenticationToken(id, properties) {
- const token = await this._tokens.first(properties ?? id)
+ async _getAuthenticationToken(id, userId) {
+ if (!isNonEmptyString(id) || (userId !== undefined && !isNonEmptyString(userId))) {
+ return
+ }
+
+ // build the query from validated fields only, never forward caller-supplied objects
+ const token = await this._tokens.first(userId === undefined ? id : { id, user_id: userId })
if (token !== undefined) {
if (token.expiration > Date.now()) {
return token
@@ -290,9 +297,9 @@ export default class {
}
async getAuthenticationToken(properties) {
- const id = typeof properties === 'string' ? properties : properties.id
+ const { id, user_id: userId } = typeof properties === 'string' ? { id: properties } : (properties ?? {})
- const token = await this._getAuthenticationToken(id, properties)
+ const token = await this._getAuthenticationToken(id, userId)
if (token === undefined) {
throw noSuchAuthenticationToken(id)
}
packages/xo-server/src/xo-mixins/authentication.mjs in commit 50166fe, pull request #10748.
Vates closed the bug at the point where the lookup happens. The provider now refuses anything that is not a non-empty string. _getAuthenticationToken takes a token ID and an optional user ID, validates both, and builds the query itself. A code comment spells it out, never forward caller-supplied objects.
cookie-parser and the REST middleware are untouched, so objects still arrive from cookies. They now stop before the collection, whichever entry point delivered them. The pull request reports appliance tests on three of those, the REST API, the /signin page and the JSON-RPC method session.signIn.
The regression tests feed 17 invalid values to the lookup. Among them are {}, [], null and objects with non-string IDs. A REST test sends both j:%7B%7D and j:%5B%5D and expects HTTP 401. We found no way around the new check when reading the diff, which is a review and not a guarantee.
One design choice survives the patch. The Redis collection still answers an empty filter with every record, so the fix removes this caller, not the pattern.
Affected versions and fixed builds
The CVE record lists every Xen Orchestra release before 6.9.2 as vulnerable, plus 6.10.0. For the xo-server package the ranges are everything before 5.211.2, plus 5.213.0. The advisory marks the Xen Orchestra Appliance (XOA), which bundles the software, as affected too. The record's CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, a network attack needing no privileges and no user interaction.
Vates shipped the correction as 6.9.2 on the stable channel and 6.10.1 on the latest channel. The matching xo-server packages are 5.211.2 and 5.213.1. Source installations get the change from the current master branch, which contains commit 50166fe. Some early reports named 6.9.1 and 6.10.0 as fixed, but the advisory and the CVE record do not.
Source builds cannot go by the version number. The xo-server manifest on master still read 5.213.0 on November 23, although the branch contains the fix. Checking that commit 50166fe is in the local history is the reliable test.
| Component | Vulnerable | Fixed |
|---|---|---|
| Xen Orchestra, stable channel | before 6.9.2 | 6.9.2 |
| Xen Orchestra, latest channel | 6.10.0 | 6.10.1 |
| xo-server package, stable channel | before 5.211.2 | 5.211.2 |
| xo-server package, latest channel | 5.213.0 | 5.213.1 |
| Built from source | master before commit 50166fe | current master |
What administrators should do now
Vates urges all Xen Orchestra users to update as soon as possible. XOA moves to 6.10.1 or 6.9.2 through its updater. Installations from source pull the latest master, then rebuild and restart xo-server.
- Take Xen Orchestra off the internet. Vates recommends a VPN, a dedicated management network or an IP allow-list.
- Revoke every active session and API token. Nothing in commit 50166fe invalidates a token ID that was already copied.
- Rotate the secrets Xen Orchestra stores, including host root passwords, proxy credentials, backup remote credentials, user passwords and OTP secrets.
- Run the host checks from the advisory, and treat a clean result as inconclusive.
- Treat a web application firewall (WAF) rule for the cookie as a stopgap. Vates warns that other formats can slip past such a rule.
- Until VSA-2026-063 has a patch, restrict VM import to administrators.
A WAF rule keyed to the two published strings is thinner than it looks. The middleware reads the token from either of two cookie names. The pull request for the fix includes the JSON-RPC sign-in among the tested entry points. Only the update closes all of them.
— AnonHaven Editorial Team
Fontanet's forum announcement carries a reminder that reaches beyond CVE-2026-133469. He wrote that "a virtualization management plane should never be exposed to the whole Internet," whatever version it runs.
Vates promises to update the advisory as new information arrives. A patch for VSA-2026-063 was still pending on November 23.
Sources: Vates advisory VSA-2026-062, GitHub advisory GHSA-2r3w-c2vx-fv5g, fix commit 50166fe, CVE record, Vates advisory VSA-2026-063, Vates announcement on the XCP-ng forum.