Vulnerabilities in pkg:npm/xo-server
PACKAGECVE-2026-133469 is a CRITICAL (CVSS 9.8) empty-object login token vulnerability (CWE-1287: Improper Validation of Specified Type of Input) affecting Xen Orchestra libraries in the npm ecosystem. The issue involves empty-object login token. Remediation is available in the latest vendor maintenance releases.
pkg:npm/xo-server
Vulnerability advisories affecting package pkg:npm/xo-server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2r3w-c2vx-fv5g | CVE-2026-133469 | CRITICAL | Xen Orchestra: Empty-object login token |
| GHSA-grvm-gcqf-gh8q | CVE-2021-36383 | MODERATE | Xen Orchestra Mishandles Authorization |
CVE-2026-133469 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-133469
To remediate this vulnerability, upgrade all affected Xen Orchestra dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install xo-server@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls xo-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-133469, inspect your project dependencies using npm:
npm ls xo-server
Analyze the terminal output to locate any version of Xen Orchestra in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls xo-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1287: Improper Validation of Specified Type of Input, where the product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type. In Xen Orchestra, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-133469 Affected Xen Orchestra Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
xo-server
|
npm |
≤ 5.7.4
|
|
References
Frequently Asked Questions
What is CVE-2026-133469?
Which Xen Orchestra versions are affected?
What version fixes CVE-2026-133469?
Is xo-server affected?
What is the CVSS score of CVE-2026-133469?
What CWE is associated with CVE-2026-133469?
How can I check npm dependencies for CVE-2026-133469?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2r3w-c2vx-fv5g",
"modified" : "2026-11-23T17:29:29Z",
"published" : "2026-11-23T17:29:29Z",
"aliases" : [ "CVE-2026-133469" ],
"summary" : "Xen Orchestra: Empty-object login token",
"details" : "### Summary\n\nREST 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.\n\n\n### Details\n\n1. 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.\n2. `packages/xo-server/src/xo-mixins/authentication.mjs`, token provider:\n ```js\n this.registerAuthenticationProvider(async ({ token: tokenId }, { ip } = {}) => {\n if (!tokenId) return // {} is truthy → passes\n const token = await app.getAuthenticationToken(tokenId)\n ...\n return { bypassOtp: true, expiration: token.expiration, userId: token.user_id }\n ```\n3. `getAuthenticationToken(properties)` explicitly accepts an object, and `_getAuthenticationToken(id, properties)` does `this._tokens.first(properties ?? id)`.\n4. `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.\n5. 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 `{}`.\n\n\n### Proof of concept\n\nThe 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.\n\n```bash\ncurl -b 'authenticationToken=j:{}' https://<ip>/rest/v0/users\n```\n\n### Impact\n\nAn 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "xo-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.7.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/vatesfr/xen-orchestra/security/advisories/GHSA-2r3w-c2vx-fv5g"
}, {
"type" : "WEB",
"url" : "https://github.com/vatesfr/xen-orchestra/pull/10748"
}, {
"type" : "WEB",
"url" : "https://github.com/vatesfr/xen-orchestra/commit/50166fe3a49c02069d35ba9046ca4a1f77f4e11d"
}, {
"type" : "WEB",
"url" : "https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-062"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vatesfr/xen-orchestra"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1287", "CWE-287" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-23T17:29:29Z",
"nvd_published_at" : null
}
}