2026-11-23 17:7CVE-2026-133469GitHub_M
PUBLISHED5.2CWE-287CWE-1287

Xen Orchestra: Empty-object login token

XO (Xen Orchestra) is a solution to visualize, manage, backup and delegate your XCP-ng (or XenServer) infrastructure. Prior to 6.9.2 and 6.10.1, 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. This vulnerability is actively exploited in the wild. This vulnerability is fixed in 6.9.2 and 6.10.1.

Problem type

Affected products

vatesfr

xen-orchestra

< 6.9.2 - AFFECTED

>= 6.10.0, < 6.10.1 - AFFECTED

xen-orchestra

xo-server

< 5.211.2 - AFFECTED

>= 5.213.0, < 5.213.1 - AFFECTED

References

GitHub Security Advisories

GHSA-2r3w-c2vx-fv5g

Xen Orchestra: Empty-object login token

https://github.com/advisories/GHSA-2r3w-c2vx-fv5g

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:
    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.

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-133469
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-133469",
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "dateUpdated": "2026-11-23T17:07:16.240Z",
    "dateReserved": "2026-11-19T20:59:23.974Z",
    "datePublished": "2026-11-23T17:07:16.240Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M",
        "dateUpdated": "2026-11-23T17:07:16.240Z"
      },
      "title": "Xen Orchestra: Empty-object login token",
      "descriptions": [
        {
          "lang": "en",
          "value": "XO (Xen Orchestra) is a solution to visualize, manage, backup and delegate your XCP-ng (or XenServer) infrastructure. Prior to 6.9.2 and 6.10.1, 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. This vulnerability is actively exploited in the wild. This vulnerability is fixed in 6.9.2 and 6.10.1."
        }
      ],
      "affected": [
        {
          "vendor": "vatesfr",
          "product": "xen-orchestra",
          "versions": [
            {
              "version": "< 6.9.2",
              "status": "affected"
            },
            {
              "version": ">= 6.10.0, < 6.10.1",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "xen-orchestra",
          "product": "xo-server",
          "versions": [
            {
              "version": "< 5.211.2",
              "status": "affected"
            },
            {
              "version": ">= 5.213.0, < 5.213.1",
              "status": "affected"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-287: Improper Authentication",
              "cweId": "CWE-287",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-1287: Improper Validation of Specified Type of Input",
              "cweId": "CWE-1287",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/vatesfr/xen-orchestra/security/advisories/GHSA-2r3w-c2vx-fv5g",
          "name": "https://github.com/vatesfr/xen-orchestra/security/advisories/GHSA-2r3w-c2vx-fv5g",
          "tags": [
            "x_refsource_CONFIRM"
          ]
        },
        {
          "url": "https://github.com/vatesfr/xen-orchestra/pull/10748",
          "name": "https://github.com/vatesfr/xen-orchestra/pull/10748",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://github.com/vatesfr/xen-orchestra/commit/50166fe3a49c02069d35ba9046ca4a1f77f4e11d",
          "name": "https://github.com/vatesfr/xen-orchestra/commit/50166fe3a49c02069d35ba9046ca4a1f77f4e11d",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-062",
          "name": "https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-062",
          "tags": [
            "x_refsource_MISC"
          ]
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "privilegesRequired": "NONE",
            "userInteraction": "NONE",
            "scope": "UNCHANGED",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL"
          }
        }
      ]
    }
  }
}