{"schema":"threatline.record/2","record":{"id":"CVE-2026-113669","aliases":["GHSA-hhvr-8m24-qqr3"],"summary":"ApostropheCMS: Cross-domain session token in URL confers session takeover","details":"**Summary**\nApostrophe'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.\n\n**Details**\n`packages/apostrophe/modules/@apostrophecms/i18n/index.js`:\n- 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.\n- `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`.\n- Middleware without `before:` is registered for every URL (express `findModuleMiddlewareAndRoutes` L820–879); verified with `APOS_LOG_ALL_ROUTES=1`.\n\n**PoC**\n```\n# 0) Anonymous baseline: admin-only draft → 403\n# 1) Admin logs in legitimately (token minted into redirect URL):\ncurl -c admin.cookies -X POST -H \"Content-Type: application/json\" \\\n     --data '{\"username\":\"admin\",\"password\":\"adminpassword\",\"session\":true}' \\\n     http://localhost:3100/api/v1/@apostrophecms/login/login\n# 2) Attacker with NO credentials visits the leaked token URL:\ncurl -c atk.cookies \"http://localhost:3100/?aposCrossDomainSessionToken=HUNTING_TOKEN\"\n#    → 302 Location: / ; attacker now holds a vulnlab.sid SID cookie\n# 3) Attacker reads admin-only content via adopted session:\ncurl -b atk.cookies \".../api/v1/@apostrophecms/page/d576242ve1dkzb12jiiabujd:en:draft\"\n#    → 200  adopted-session read -> Secret Private Page | secretData = TOP-SECRET-VALUE-abc123\n# 4) Cache entry consumed (single-use): {\"value\":null}\n```\n\n**Impact**\nSession hijack / account takeover of the migrated user for anyone who obtains the token, inheriting all the account's privileges. Exposure is realistic precisely because the token is in URLs: server/proxy/browser-access logs, browser history, and the Referer header when the destination host differs from the source (the intended use case). Single-use limits but does not remove the window.\n\n**Remediation** — Deliver the token via a short-lived HttpOnly signed SameSite cookie rather than a query parameter; bind consumption to the exact source/destination host pair, expire in seconds, and never log it.","categories":["Libraries & packages"],"product":"apostrophe","vendor":"apostrophecms","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:09:02Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"apostrophe"},"range":"< 4.33.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:09:02Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@apostrophecms/passport-bridge"},"range":"< 1.6.1"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-113669","source_modified_at":"2026-10-23T01:58:19.763Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"apostrophe","vendor":"apostrophecms","versions":[{"version":"< 4.33.0","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-113669","source_modified_at":"2026-10-23T01:58:19.763Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"passport-bridge","vendor":"@apostrophecms","versions":[{"version":"< 1.6.1","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:15:04.524920067Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"apostrophe","ecosystem":"npm","purl":"pkg:npm/apostrophe"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.33.0"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:15:04.524920067Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"@apostrophecms/passport-bridge","ecosystem":"npm","purl":"pkg:npm/%40apostrophecms/passport-bridge"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.1"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:09:02Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"apostrophe"},"version":"4.33.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:09:02Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@apostrophecms/passport-bridge"},"version":"1.6.1"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:15:04.524920067Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"apostrophe","ecosystem":"npm","purl":"pkg:npm/apostrophe"},"version":"4.33.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-hhvr-8m24-qqr3","source_modified_at":"2026-10-20T18:15:04.524920067Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"@apostrophecms/passport-bridge","ecosystem":"npm","purl":"pkg:npm/%40apostrophecms/passport-bridge"},"version":"1.6.1"}],"cvss":5.3,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00336,"percentile":0.25811,"score_date":"2026-10-23"},"published_at":"2026-10-20T17:35:40.136Z","modified_at":"2026-10-23T01:58:19.763Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-hhvr-8m24-qqr3","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T18:09:02Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-113669","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23T01:58:19.763Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-hhvr-8m24-qqr3","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T18:15:04.524920067Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-113669","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-hhvr-8m24-qqr3","tags":["exploit"]},{"url":"https://github.com/advisories/GHSA-hhvr-8m24-qqr3","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/commit/9500b8b0e1d630d5e07fbb5fd2c25ed0943845ce","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/commit/f84fd41cbf6c22eb8d0008fc9c25df1f7130b350","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/releases/tag/apostrophe@4.33.0","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-23T01:57:52.354848Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-23T01:58:19.763Z","content_hash":"08b9f7fa62a04862b34adec42e69b61de50ceb851ac40c4dfc2e27b3a0d6aff7"}}
