November 29, 2026
Twenty-Six Cookies Logged In. The Block Rule Stopped Three.
The token record will tell you which address authenticated. The log will not.

By Raj Namdev
7 min read
30-second version:_ CISA's deadline for CVE-2026โ133469 is today, November 28. The bug is a missing type check, not a magic string: Xen Orchestra's token lookup accepts any object, and an empty one means "no filter," so it returns the first login token it holds. The published mitigation blocks two literal cookie values. I replayed the shipped parser and lookup code against 36 requests โ the vendor's own two cookie names, eighteen encodings; 26 authenticated, the rule stopped three. The fix's regression test already covers the shapes the rule misses โ and the same object walks in through a second door that has no cookie at all._
On 10 November at 09:29 CET, a commit titled fix(xo-server): validate authentication token IDs landed in the Xen Orchestra repository. It changes four files. The security-relevant part is one line:
_๐ฅ _Master AI & Tech Skills ๐ฅ Up to 50% OFF โ Limited-Time Offer ๐ Enroll Now & Start Learning
const isNonEmptyString = value => typeof value === 'string' && value.length !== 0const isNonEmptyString = value => typeof value === 'string' && value.length !== 0Fifteen days later, CISA added it to the KEV catalog and set a November 28 deadline.
One cookie, three shapes
The advisory's summary is easy to misread: "REST cookie parsing turns authenticationToken=j:%7B%7D into {}."
Three values, three layers:
Wire โ authenticationToken=j:%7B%7D After cookie.parse โ j:{} After cookie-parser โ {}
A WAF or reverse proxy inspects layer one. The provider inspects layer three. Everything between them is a decoder.
What the provider does with layer three
The REST middleware reads two cookie names:
const token = cookies.authenticationToken ?? cookies.token
Object.assign(credentials, { token })
const { user } = await xoApp.authenticateUser(credentials, { ip }, { bypassTaskCreation: hasToken })
// token provider
if (!tokenId) { return } // {} is truthy
const token = await app.getAuthenticationToken(tokenId)
// token lookup
const id = typeof properties === 'string' ? properties : properties.id // undefined
const token = await this._tokens.first(properties ?? id)const token = cookies.authenticationToken ?? cookies.token
Object.assign(credentials, { token })
const { user } = await xoApp.authenticateUser(credentials, { ip }, { bypassTaskCreation: hasToken })
// token provider
if (!tokenId) { return } // {} is truthy
const token = await app.getAuthenticationToken(tokenId)
// token lookup
const id = typeof properties === 'string' ? properties : properties.id // undefined
const token = await this._tokens.first(properties ?? id)Collection#first passes objects through untouched, and Redis#_get asks isEmpty(properties). It is empty, so the code reads the whole xo:token_ids set and returns every token. first() returns index zero; the provider checks expiry, stamps the source IP into last_uses, signs in as that token's owner.
Nothing in that path asks what type the token was.
The corpus
I rebuilt the path from shipped pieces โ cookie@0.7.2, cookie-parser@1.4.7, real lodash/isEmpty, the pre-fix lookup functions transcribed โ against a three-token store. Eighteen encodings, two cookie names, 36 requests.
Cookie values tested: j:{}, j:%7B%7D, j:%7b%7d, j:%20%7B%7D, j:%09%7B%7D, j:%7B%20%7D, j:%7B%7D%20, j:[], j:%5B%5D, j:[%20], j:%5B%20%5D, j:{"user_id":"user-bob"}, j:%7B%22user_id%22%3A%22user-bob%22%7D, j:0, j:false, j:"", j:null, {}.
โ ๏ธ The per-value breakdown (which of the 18 specifically authenticated vs. which the rule caught) didn't survive in the text I received โ only the aggregate did: thirteen of eighteen values authenticate. Under
authenticationTokenthe rule catches three; undertokenit catches none, because the pattern starts with a cookie name not being sent. That's 26 authenticated requests out of 36, three blocked.
The rule I tested is the advisory's literal match on authenticationToken=j:{} or authenticationToken=j:%7B%7D; a regex with the same alternation scores identically. Vates warns in that section that the rule "can be bypassed using other formats," so this is not a vendor error. It is the gap between a warning and how warnings get used: pasted into a proxy config as a string, treated as a control, never measured.
The array is the tell
Every public description of this bug, including CISA's KEV entry, says the token is an "empty JSON object." The object is a symptom. The condition is typeof token !== 'string' โ and [] does exactly the same thing. An empty array is not an empty object, but it is empty to isEmpty, and Collection#first passes arrays through because lodash/isObject([]) is true.
The targeted variant is worse than the wording suggests. j:{"user_id":"user-bob"} is a non-empty object, so isEmpty is false and the code goes to the index lookup โ built on exactly the two indexes the token store declares, user_id and client_id. If you know an administrator's user id, which appears in REST URLs and audit exports, you do not need the first-token lottery. You ask for theirs.
The fix's own test file lists the input space the maintainers considered invalid:
const INVALID_TOKEN_IDS = [
{}, [], null, undefined, 0, 1, true, false, '',
{ user_id: 'user-1' }, { id: '' }, { id: 42 }, ...
]const INVALID_TOKEN_IDS = [
{}, [], null, undefined, 0, 1, true, false, '',
{ user_id: 'user-1' }, { id: '' }, { id: 42 }, ...
]{}, [], and { user_id } are all in that list. The published block rule covers the first.
The fix is a type check, in the provider
The patch is small and it is in the right place:
- if (!tokenId) {
+ if (!isNonEmptyString(tokenId)) {
- async _getAuthenticationToken(id, properties) {
- const token = await this._tokens.first(properties ?? id)
+ async _getAuthenticationToken(id, userId) {
+ if (!isNonEmptyString(id) || (userId !== undefined && !isNonEmptyString(userId))) return
+ const token = await this._tokens.first(userId === undefined ? id : { id, user_id: userId })- if (!tokenId) {
+ if (!isNonEmptyString(tokenId)) {
- async _getAuthenticationToken(id, properties) {
- const token = await this._tokens.first(properties ?? id)
+ async _getAuthenticationToken(id, userId) {
+ if (!isNonEmptyString(id) || (userId !== undefined && !isNonEmptyString(userId))) return
+ const token = await this._tokens.first(userId === undefined ? id : { id, user_id: userId })The second hunk matters long-term: it stops forwarding caller-supplied objects to the database and rebuilds the query from two validated strings. That closes the class, not the string.
The other door has no cookie
The middleware is one of two ways into the provider. The other is the JSON-RPC method session.signIn, and its source is an accidental history of the bug:
export async function signIn(credentials) { ... } // no .params
signIn.permission = null
export const signInWithToken = deprecate(signIn, ...)
signInWithToken.params = { token: { type: 'string' } } // the deprecated one validatesexport async function signIn(credentials) { ... } // no .params
signIn.permission = null
export const signInWithToken = deprecate(signIn, ...)
signInWithToken.params = { token: { type: 'string' } } // the deprecated one validatesThe API layer only compiles a validator when a method declares params. The current sign-in method declares none, so {"method":"session.signIn","params":{"token":{}}} reaches authenticateUser with the same object and no cookie in the request. The deprecated method nobody should be using is the one that enforced the type.
A proxy rule on a cookie header cannot see this. That is not a tuning problem; it is a layer problem.
There is no log. There is a record.
Vates states it plainly: "In the case of a successful exploitation, there is no log to detect unauthenticated access." The source explains why, and it is worse than "logging is off."
The REST log middleware writes one line per request, at debug level:
log.debug(`[${new Date().toISOString()}] ${method} ${originalUrl} ${statusCode} ${duration}ms`)log.debug(`[${new Date().toISOString()}] ${method} ${originalUrl} ${statusCode} ${duration}ms`)No headers, no cookies, and at the default level it is not emitted at all. At debug level it is indistinguishable from a normal authenticated request. The middleware also passes bypassTaskCreation: hasToken, so token authentication creates no task record. The exploit leaves nothing in any of the three places an analyst would look.
It does leave something in Redis. The provider writes the source IP onto the token it borrowed:
let { last_uses = {} } = token
last_uses[ip] = { timestamp: Date.now() }
await this._tokens.update(token)let { last_uses = {} } = token
last_uses[ip] = { timestamp: Date.now() }
await this._tokens.update(token)Token records live at xo:token:<id> as JSON strings. Without encrypted credentials:
redis-cli --scan --pattern 'xo:token:*' | while read k; do redis-cli get "$k"; doneredis-cli --scan --pattern 'xo:token:*' | while read k; do redis-cli get "$k"; doneEach record's last_uses map should hold only addresses your users sign in from. An address in that map without a matching sign-in in the proxy log is the exploit's fingerprint, written by the victim's own server. With credential encryption the records are ciphertext; you need the XO crypto key to read them.
The version in the headline
The vendor's advisory says affected is "before 6.9.2 (stable) and 6.10.1 (latest)"; the fix is in those releases. The Hacker News and BleepingComputer both reported the fix as "6.9.1 and 6.10.0." Those are the last vulnerable builds.
An administrator on 6.9.1 who reads the coverage, confirms the version, and closes the ticket is running the exact code the exploit targets.
What the admin account buys
The authentication bypass was used with a second flaw, VSA-2026โ063: an unprivileged account with VM import rights could pass crafted keys in an imported XVA and reach the host. With admin from the cookie, the attacker skips that requirement.
The artefacts Vates published from compromised hosts:
Xen Orchestra โ running VM named pivot2 XCP-ng host โ VM with hvm_serial: file; -serial file: in xensource.log XCP-ng host โ /etc/cron.d/zz-ustar, /etc/cron.d/zz-ustar2 XCP-ng host โ /.ustar5, /.ustar6 XCP-ng host โ modified /etc/ld.so.preload
ld.so.preload is the one I would check first. It forces a library into every dynamically linked process on the host โ how you hide a VM, a process, and a file from the person looking.
What to do today
Patch to 6.9.2 or 6.10.1 (xo-server 5.211.2 or 5.213.1). If you cannot, take the console off the internet; a management interface that authenticates strangers is not one.
Then hunt, because patching does not undo a login. Check the host artefacts above, read last_uses out of the token records, compare those addresses with your proxy logs. Rotate everything the console held: backup remotes, the pool secret, root, OTP secrets, mail credentials. Vates recommends a rebuild after a confirmed compromise, because cleanup cannot prove a backdoor is gone.
If you keep the block rule, fix the layer: match the decoded value, cover both cookie names, add a rule for the JSON-RPC body. Then measure it the way the vendor did โ their regression test runs four combinations of cookie name and value. The published rule covers one.
The token record will tell you which address authenticated. The log will not.
Sources
- Vates advisory VSA-2026โ062 โ published 2026โ11โ10, updated 2026โ11โ25. Affected/fixed versions, the "no log" statement, the WAF caveat, the IoC list, credits to Filip Magic (@mad31k) and Christoffer Olsen of TDC NET Security.
- CVE-2026โ133469 โ NVD record, published 2026โ11โ23, CVSS 3.1 9.8 (GitHub CNA), CWE-287 / CWE-1287.
- GHSA-2r3w-c2vx-fv5g โ the five-step code path and the one-line proof of concept.
- Fix commit 50166fe โ
fix(xo-server): validate authentication token IDs(#10748), authored 2026-11-10 09:29:37 +0100; includes_authentication.test.mjswith theINVALID_TOKEN_IDSlist. - Pre-fix source at 7244027 โ
collection.mjs,collection/redis.mjs,xo-mixins/authentication.mjs,xo-mixins/api.mjs,api/session.mjs, the REST authentication and log middlewares,config.toml. - CISA KEV catalog โ dateAdded 2026โ11โ25, dueDate 2026โ11โ28, "specially crafted authentication token containing an empty JSON object." Catalog version 2026.11.27.
- The Hacker News, 2026โ11โ10 โ gives the fixed versions as 6.9.1 and 6.10.0.
- BleepingComputer, 2026โ11โ10 โ same version error, IoC list.
The corpus was replayed on 28 November 2026 with the shipped cookie/cookie-parser versions and the pre-fix lookup functions transcribed from the repository, against a synthetic three-token store. No live Xen Orchestra, Redis, or XCP-ng host was available, so nothing here was executed against a real instance: the 26-of-36 result is a property of the code path, not a scan. The JSON-RPC variant and the last_uses record are read from source and the vendor's advisory, not observed.
Thank you for being a part of the community
Before you go:
๐ Be sure to clap and follow the writer ๏ธ๐๏ธ๏ธ
๐ Follow us: Medium
Disclosure: This post includes affiliate and partnership links.