Skip to content
Heist/ feed
Back to feed
MediumFix available

ApostropheCMS: Cross-domain session token in URL confers session takeover

Type: advisorySources: OSV

**Summary** Apostrophe's cross-domain session migration emits a single-use session token as a URL query parameter and stores it in the Mongo cache. Any client that presents the token silently adopts the target user's full session (including `passport.user`) with no credentials. **Details** `packages/apostrophe/modules/@apostrophecms/i18n/index.js`: - Token generation on cross-host/locale flows (L479–487) and passport-bridge cross-locale redirect (`passport-bridge/index.js` L557–593) places the token in the URL. - `acceptCrossDomainSessionToken` (L258–298) reads `?aposCrossDomainSessionToken`, `Object.assign`s the stored session (cookie + `passport.user`) onto `req.session`, then nulls the cache entry under namespace `@apostrophecms/i18n:cross-domain-sessions`. - Middleware without `before:` is registered for every URL (express `findModuleMiddlewareAndRoutes` L820–879); verified with `APOS_LOG_ALL_ROUTES=1`. **PoC** ``` # 0) Anonymous baseline: admin-only draft → 403 # 1) Admin logs in legitimately (token minted into redirect URL): curl -c admin.cookies -X POST -H "Content-Type: application/json" \ --data '{"username":"admin","password":"adminpassword","session":true}' \ http://localhost:3100/api/v1/@apostrophecms/login/login # 2) Attacker with NO credentials visits the leaked token URL: curl -c atk.cookies "http://localhost:3100/?aposCrossDomainSessionToken=HUNTING_TOKEN" # → 302 Location: / ; attacker now holds a vulnlab.sid SID cookie # 3) Attacker reads admin-only content

Products
@apostrophecms/passport-bridge, apostrophe
Affected versions
Not specified
Fixed versions
1.6.1, 4.33.0
CVEs
CVE-2026-113669
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:14 UTC · Revision 1

Source evidence

ApostropheCMS: Cross-domain session token in URL confers session takeover

core-osv · Original source

Published 20 Oct 2026, 18:09 UTC

**Summary** Apostrophe's cross-domain session migration emits a single-use session token as a URL query parameter and stores it in the Mongo cache. Any client that presents the token silently adopts the target user's full session (including `passport.user`) with no credentials. **Details** `packages/apostrophe/modules/@apostrophecms/i18n/index.js`: - Token generation on cross-host/locale flows (L479–487) and passport-bridge cross-locale redirect (`passport-bridge/index.js` L557–593) places the token in the URL. - `acceptCrossDomainSessionToken` (L258–298) reads `?aposCrossDomainSessionToken`, `Object.assign`s the stored session (cookie + `passport.user`) onto `req.session`, then nulls the cache entry under namespace `@apostrophecms/i18n:cross-domain-sessions`. - Middleware without `before:` is registered for every URL (express `findModuleMiddlewareAndRoutes` L820–879); verified with `APOS_LOG_ALL_ROUTES=1`. **PoC** ``` # 0) Anonymous baseline: admin-only draft → 403 # 1) Admin logs in legitimately (token minted into redirect URL): curl -c admin.cookies -X POST -H "Content-Type: application/json" \ --data '{"username":"admin","password":"adminpassword","session":true}' \ http://localhost:3100/api/v1/@apostrophecms/login/login # 2) Attacker with NO credentials visits the leaked token URL: curl -c atk.cookies "http://localhost:3100/?aposCrossDomainSessionToken=HUNTING_TOKEN" # → 302 Location: / ; attacker now holds a vulnlab.sid SID cookie # 3) Attacker reads admin-only content

osv:GHSA-hhvr-8m24-qqr3

apostrophe

Fixed versions: 4.33.0

@apostrophecms/passport-bridge

Fixed versions: 1.6.1

Complete source record
{
  "id": "ceae476dd91abbd7b08aceece78339c2acd3e5350fcaf5d6e665322b164276e4",
  "url": "https://osv.dev/vulnerability/GHSA-hhvr-8m24-qqr3",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ApostropheCMS: Cross-domain session token in URL confers session takeover",
    "summary": "**Summary** Apostrophe's cross-domain session migration emits a single-use session token as a URL query parameter and stores it in the Mongo cache. Any client that presents the token silently adopts the target user's full session (including `passport.user`) with no credentials. **Details** `packages/apostrophe/modules/@apostrophecms/i18n/index.js`: - Token generation on cross-host/locale flows (L479–487) and passport-bridge cross-locale redirect (`passport-bridge/index.js` L557–593) places the token in the URL. - `acceptCrossDomainSessionToken` (L258–298) reads `?aposCrossDomainSessionToken`, `Object.assign`s the stored session (cookie + `passport.user`) onto `req.session`, then nulls the cache entry under namespace `@apostrophecms/i18n:cross-domain-sessions`. - Middleware without `before:` is registered for every URL (express `findModuleMiddlewareAndRoutes` L820–879); verified with `APOS_LOG_ALL_ROUTES=1`. **PoC** ``` # 0) Anonymous baseline: admin-only draft → 403 # 1) Admin logs in legitimately (token minted into redirect URL): curl -c admin.cookies -X POST -H \"Content-Type: application/json\" \\ --data '{\"username\":\"admin\",\"password\":\"adminpassword\",\"session\":true}' \\ http://localhost:3100/api/v1/@apostrophecms/login/login # 2) Attacker with NO credentials visits the leaked token URL: curl -c atk.cookies \"http://localhost:3100/?aposCrossDomainSessionToken=HUNTING_TOKEN\" # → 302 Location: / ; attacker now holds a vulnlab.sid SID cookie # 3) Attacker reads admin-only content ",
    "evidence": "osv:GHSA-hhvr-8m24-qqr3",
    "products": [
      {
        "name": {
          "value": "apostrophe",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.33.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "@apostrophecms/passport-bridge",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "GHSA-hhvr-8m24-qqr3",
      "aliases": [
        "CVE-2026-113669",
        "GHSA-hhvr-8m24-qqr3"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.33.0"
                }
              ]
            }
          ],
          "package": {
            "name": "apostrophe",
            "purl": "pkg:npm/apostrophe",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-hhvr-8m24-qqr3/GHSA-hhvr-8m24-qqr3.json"
          }
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.1"
                }
              ]
            }
          ],
          "package": {
            "name": "@apostrophecms/passport-bridge",
            "purl": "pkg:npm/%40apostrophecms/passport-bridge",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-hhvr-8m24-qqr3/GHSA-hhvr-8m24-qqr3.json"
          }
        }
      ],
      "modified": "2026-10-20T18:15:04.524920067Z",
      "provider": "osv",
      "references": [
        "https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-hhvr-8m24-qqr3",
        "https://github.com/apostrophecms/apostrophe"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-598"
        ],
        "severity": "MODERATE",
        "github_reviewed": true,
        "nvd_published_at": null,
        "github_reviewed_at": "2026-10-20T18:09:01Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-113669",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 390137,
  "published_at": "2026-10-20T18:09:01+00:00"
}