Xen Orchestra's empty token bug: when login input reached the database
Vates says a Xen Orchestra authentication flaw let unauthenticated requests turn an empty object into a token lookup. The upstream fix shows why validating type is not enough when request data can still shape a database query.
Xen Orchestra's empty token bug: when login input reached the database
Vates disclosed a critical authentication flaw in Xen Orchestra on November 25, 2026. The issue, tracked as CVE-2026-133469 and published as VSA-2026-062, allowed an unauthenticated request to present an empty object where the server expected a token identifier. Vates says the flaw was actively exploited before the fix became available (Vates security advisory VSA-2026-062).
The interesting part is not that JavaScript considers {} truthy. That mistake is familiar. The more important failure happened one layer later, when the object was passed into a database lookup that was designed to accept a string identifier or a narrowly shaped filter. The authentication code let request data choose the shape of the query. Once that boundary collapsed, a value that should have been rejected as malformed could be interpreted as a request for the first token in the collection (Vates security advisory VSA-2026-062; upstream authentication patch).
This is a useful incident to study because the fix is small but the design lesson is broad. Authentication bugs often survive in the gap between a web framework's input representation, an application's helper methods, and a database client's query semantics. Each layer can look reasonable in isolation. The failure appears when an input keeps more structure than the next layer was meant to receive.
What Vates confirmed
The affected component is xo-server, the server side of Xen Orchestra. Vates's advisory identifies an authentication bypass in token handling, assigns CVE-2026-133469, and says the flaw can let an unauthenticated attacker log in as the first available user. The advisory rates the issue as critical and tells operators to update to Xen Orchestra 5.5.1 or later (Vates security advisory VSA-2026-062).
That wording matters. It does not mean every affected installation gives an attacker administrator privileges. The account selected by the token lookup determines the initial identity, and that account's permissions determine what the attacker can do next. A first user with limited rights is a different incident from a first user with full access to hosts, pools, backups, and the management plane. The bypass is confirmed. The final impact still depends on the deployment's accounts and authorization model ().
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Vates also says the issue was being exploited. That is stronger than a normal vulnerability announcement, but it does not by itself establish how many installations were reached, which accounts were selected, or whether a particular operator was compromised. The public advisory gives the operational conclusion, not a complete incident dataset (Vates security advisory VSA-2026-062).
The upstream fix was committed on November 10, 2026. Its commit message is unusually direct: fix(xo-server): validate authentication token IDs. The change adds a security entry to the unreleased changelog, introduces dedicated authentication tests, extends REST API tests, and changes the token lookup implementation (upstream authentication patch).
The type boundary that failed
The old code accepted a parameter named properties. If the caller passed a string, the method treated that string as a token ID. If the caller passed an object, it read properties.id and then passed the entire object into the lower-level lookup. That meant the method did not enforce one input contract. It accepted a scalar token ID, or an object whose keys became part of a database predicate (upstream authentication patch; patched authentication implementation).
The provider path had a related weakness. It checked the token with a truthiness test. An empty JavaScript object is truthy, so {} passed the guard even though it was not a usable token ID. The patch replaces that check with isNonEmptyString(tokenId), which accepts only a nonempty string (upstream authentication patch; patched authentication implementation).
The distinction is easy to miss in review. A truthiness check answers the question, "Is there some value here?" Authentication needs to answer a narrower question, "Is this value a valid identifier with the type and shape required by the next operation?" Those are different predicates. The first permits arrays, objects, booleans, and numbers. The second permits only the representation the token store is meant to query (upstream authentication patch).
The lower-level method made the problem more serious. Before the fix, _getAuthenticationToken(id, properties) called _tokens.first(properties ?? id). If an object arrived as properties, that object went directly to the token collection. An empty object therefore remained an empty object at the database boundary. The patch changes the method to receive id and an optional userId, validates both, and constructs the lookup from those two fields itself (upstream authentication patch; patched authentication implementation).
This is not a claim that every database treats an empty predicate identically. The relevant fact here is narrower. Xen Orchestra's own advisory describes the resulting authentication bypass, and the upstream patch specifically prevents caller supplied objects from reaching the token query. The implementation evidence and the vendor's impact statement point to the same trust-boundary failure (Vates security advisory VSA-2026-062; upstream authentication patch).
Illustration of the components involved in Xen Orchestra token authentication and the boundary where request data must become a validated identifier.
The attack does not require a clever token string. It requires the server to preserve an unexpected object long enough for a lower layer to assign it meaning. That is why this class of bug deserves attention even when the vulnerable code is only a few lines long. The exploit surface is the path between parsing and interpretation (Vates security advisory VSA-2026-062; upstream authentication patch).
Why an empty object can be dangerous
A token endpoint usually has a simple conceptual contract. The client supplies a token identifier. The server finds that identifier, checks its expiration, checks the associated user, and continues only if those checks pass. The database lookup should be a consequence of that contract, not a second parser for arbitrary request data (Vates security advisory VSA-2026-062; upstream authentication patch).
The pre-fix code blurred those roles. getAuthenticationToken extracted an ID but also forwarded the original object. The database helper then received a value whose shape was still controlled by the caller. A normal token string selected one record by ID. A compound object could select by multiple fields. An empty object selected no fields at all. The server had lost the distinction between "find this token" and "perform a collection lookup using whatever predicate arrived here." (upstream authentication patch; patched authentication implementation)
There is a second subtlety in the patch. The new implementation does not merely reject {} at the outermost method. It changes the helper's interface so the helper receives primitive values, validates them, and builds the allowed query internally. This matters because fixing only the first caller leaves other callers exposed. A different route, provider, or future refactor could otherwise call _getAuthenticationToken with an object and recreate the problem (upstream authentication patch).
The new tests show the maintainers understood that risk. The test matrix includes objects, arrays, null, undefined, numbers, booleans, an empty string, malformed object fields, and objects with extra keys. It checks that invalid values are rejected without reading or updating the token collection. It also checks that a valid string still works, that a valid compound lookup by ID and user ID remains supported, and that extra caller supplied keys are not forwarded (upstream authentication patch; authentication regression tests).
That last test is especially valuable. It protects against a more general regression than the reported exploit. Even when a caller supplies a valid token ID, it should not be able to smuggle unrelated keys into the database predicate. The patch converts the accepted input into an allowlisted query rather than passing through the original object (upstream authentication patch; authentication regression tests).
Illustration comparing the pre-fix request-to-query path with the patched path that validates token fields and rebuilds the database predicate.
The fix is a query construction change
The central code change introduces isNonEmptyString. The token provider now returns early unless the token ID is a nonempty string. The lookup helper performs the same validation for the ID and, when present, the user ID. Only after those checks does it call _tokens.first. If a user ID is supplied, the helper creates { id, user_id: userId }; otherwise it queries with the validated ID string (upstream authentication patch; patched authentication implementation).
That sequence creates a small but meaningful security boundary. Request data enters as an untrusted value. The authentication layer reduces it to the fields and types it understands. The data layer receives a new object assembled by trusted code, not a reference to the caller's original object. The code is still compact, but the direction of control has changed. The caller can provide values. It cannot choose the query structure (upstream authentication patch).
The tests also cover the real REST path. They send object and array cookie values to both legacy and external routes and expect HTTP 401. They verify that invalid cookies do not cause token reads or updates. A valid string token continues to receive a successful response, and the tests check that its use is recorded (upstream authentication patch).
That is the difference between a patch that changes a conditional and a patch that closes a boundary. A conditional can stop the exact proof of concept. Query reconstruction, provider validation, and route-level tests reduce the chance that the same mistake survives under another entry point.
What operators should do now
The first action is to update Xen Orchestra to 5.5.1 or later, following Vates's advisory rather than relying on a package manager's idea of the latest version (Vates security advisory VSA-2026-062). The version matters because the security fix is in the server component. Updating a client or a browser integration does not repair the authentication code that processes the request (Vates security advisory VSA-2026-062; upstream authentication patch).
If an installation was reachable by untrusted users before the update, treat the patch as containment, not as proof that no one logged in. Vates's statement about active exploitation justifies reviewing authentication logs and recent administrative activity. Look for unexpected sessions, changes made by accounts that normally do not manage the platform, and token use from unfamiliar network locations. The public advisory does not define one universal log signature, so the review should use the deployment's own logging and account records rather than a copied indicator from an unrelated product (Vates security advisory VSA-2026-062).
Operators should also review the account that would have been selected by the vulnerable lookup. The advisory describes the first available user, which means account ordering and the local user database can affect the practical result. The source does not establish that every deployment exposed its most privileged account, so defenders should verify their own user and permission layout instead of assuming either the worst case or a harmless case (Vates security advisory VSA-2026-062).
Where the management interface was exposed directly to the internet, reduce that exposure while patching. Put the administration surface behind an access control layer, VPN, or equivalent network boundary, and preserve the ability to reach it for emergency maintenance. That is a defensive recommendation, not a substitute for the update. A network control can reduce who reaches the endpoint. It cannot correct a server that interprets malformed authentication input as a valid lookup (Vates security advisory VSA-2026-062; upstream authentication patch).
After updating, confirm the running xo-server version, not only the version recorded in a deployment file. Then repeat the check after the next restart or upgrade operation. The goal is to verify that the process serving the management API is the fixed build. This is ordinary change control, but it matters more for a server side authentication fix because a stale process can keep the vulnerable boundary alive even when the intended package has been replaced (Vates security advisory VSA-2026-062).
Lessons for application teams
The immediate lesson is to validate types before a value crosses a trust boundary. The deeper lesson is to validate the structure that the next layer will interpret. Rejecting an object because it is an object is useful here, but the durable rule is that database helpers should not accept raw request objects unless they are explicitly designed as parsers and enforce an allowlist of fields (upstream authentication patch; patched authentication implementation).
A second lesson is to keep authentication lookup APIs narrow. A method called getAuthenticationToken should ideally accept a token ID, or a typed object whose schema is enforced at one boundary. The pre-fix API made it easy for an object to carry from the HTTP layer into the database layer. The patched API separates id and userId, then builds the query internally. That makes unsafe calls harder to write and easier to spot in code review (upstream authentication patch).
A third lesson is to test negative shapes, not only invalid values. Many test suites cover a wrong token string, an expired token, or a missing user. The upstream tests add arrays, objects, booleans, null, and extra keys. Those cases are not exotic. They are the kinds of values produced when a parser, cookie decoder, or framework feature turns structured input into a JavaScript value that the original author did not expect (upstream authentication patch; authentication regression tests).
Finally, route tests should exercise the same authentication provider used in production. The patch adds tests for both legacy and external REST routes, checks the response status, and checks that rejected input does not touch token state. A unit test around a helper is necessary, but it cannot prove that every route reaches the helper with the same assumptions. The security property lives at the route boundary, so at least one test should live there too (upstream authentication patch).
What the evidence does not show
The public material establishes the vulnerability, the affected server component, the vendor's active exploitation statement, and the shape of the upstream fix. It does not provide a complete campaign report, a count of compromised installations, a list of targeted organizations, or a universal indicator of compromise. It also does not establish that an attacker could always obtain administrator privileges. Those details would require additional incident evidence that is not in the advisory or patch (Vates security advisory VSA-2026-062; upstream authentication patch).
That limit does not make the issue less urgent. An authentication bypass at a virtualization management layer is dangerous precisely because the account and environment decide what follows. The safe operational assumption for an exposed, unpatched instance is that malformed authentication input could reach a privileged path. The safe editorial conclusion is narrower: update, review access, inspect logs, and do not claim a compromise pattern the public evidence has not demonstrated (Vates security advisory VSA-2026-062).
Xen Orchestra's fix is a good example of defensive code that gets more explicit instead of more complicated. The server now accepts a token ID in the form its lookup logic understands, rejects other shapes before touching the collection, rebuilds compound predicates from validated fields, and tests the routes that depend on the result. That is the practical pattern to carry into other systems. When a value crosses from a request into a database query, the application should decide what the query is allowed to mean (upstream authentication patch; patched authentication implementation; authentication regression tests).