{
  "id": "GHSA-9m9c-vpv5-9g85",
  "source": "ghsa",
  "source_url": "https://github.com/advisories/GHSA-9m9c-vpv5-9g85",
  "summary": "Feathers exposes internal headers via unencrypted session cookie",
  "description": "All HTTP request headers are stored in the session cookie, which is signed but not encrypted, exposing internal proxy/gateway headers to clients.\n\nThe OAuth service stores the complete headers object in the session:\n```javascript\n// https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/service.ts#L173\nsession.headers = headers;\n```\n\nThe session is persisted using `cookie-session`, which base64-encodes the data. While the cookie is signed to prevent tampering, the contents are readable by anyone by simply decoding the base64 value.\n\nUnder specific deployment configurations (e.g., behind reverse proxies or API gateways), this can lead to exposure of sensitive internal infrastructure details such as API keys, service tokens, and internal IP addresses.\n\n**Credits**:  Abdelwahed Madani Yousfi (@vvxhid) / Edoardo Geraci (@b0-n0-b0) / Thomas Rinsma (@ThomasRinsma) From Codean Labs.",
  "product": "@feathersjs/authentication-oauth",
  "severity": "high",
  "cvss": null,
  "cwes": [
    "CWE-200"
  ],
  "affected": [
    {
      "ecosystem": "npm",
      "name": "@feathersjs/authentication-oauth",
      "vulnerable_range": "<= 5.0.39",
      "patched_version": "5.0.40"
    }
  ],
  "references": [
    {
      "url": "https://github.com/feathersjs/feathers/security/advisories/GHSA-9m9c-vpv5-9g85",
      "ref_type": "advisory",
      "title": null
    },
    {
      "url": "https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401",
      "ref_type": "commit",
      "title": null
    },
    {
      "url": "https://github.com/feathersjs/feathers/releases/tag/v5.0.40",
      "ref_type": "other",
      "title": null
    },
    {
      "url": "https://github.com/advisories/GHSA-9m9c-vpv5-9g85",
      "ref_type": "advisory",
      "title": null
    }
  ],
  "aliases": [
    "CVE-2026-27193"
  ],
  "published_at": "2026-02-19T20:32:37Z",
  "ingested_at": "2026-02-20T14:43:44.710193613Z",
  "raw_source": {
    "ghsa_id": "GHSA-9m9c-vpv5-9g85",
    "cve_id": "CVE-2026-27193",
    "url": "https://api.github.com/advisories/GHSA-9m9c-vpv5-9g85",
    "html_url": "https://github.com/advisories/GHSA-9m9c-vpv5-9g85",
    "summary": "Feathers exposes internal headers via unencrypted session cookie",
    "description": "All HTTP request headers are stored in the session cookie, which is signed but not encrypted, exposing internal proxy/gateway headers to clients.\n\nThe OAuth service stores the complete headers object in the session:\n```javascript\n// https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/service.ts#L173\nsession.headers = headers;\n```\n\nThe session is persisted using `cookie-session`, which base64-encodes the data. While the cookie is signed to prevent tampering, the contents are readable by anyone by simply decoding the base64 value.\n\nUnder specific deployment configurations (e.g., behind reverse proxies or API gateways), this can lead to exposure of sensitive internal infrastructure details such as API keys, service tokens, and internal IP addresses.\n\n**Credits**:  Abdelwahed Madani Yousfi (@vvxhid) / Edoardo Geraci (@b0-n0-b0) / Thomas Rinsma (@ThomasRinsma) From Codean Labs.",
    "type": "reviewed",
    "severity": "high",
    "repository_advisory_url": "https://api.github.com/repos/feathersjs/feathers/security-advisories/GHSA-9m9c-vpv5-9g85",
    "source_code_location": "https://github.com/feathersjs/feathers",
    "identifiers": [
      {
        "value": "GHSA-9m9c-vpv5-9g85",
        "type": "GHSA"
      },
      {
        "value": "CVE-2026-27193",
        "type": "CVE"
      }
    ],
    "references": [
      "https://github.com/feathersjs/feathers/security/advisories/GHSA-9m9c-vpv5-9g85",
      "https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401",
      "https://github.com/feathersjs/feathers/releases/tag/v5.0.40",
      "https://github.com/advisories/GHSA-9m9c-vpv5-9g85"
    ],
    "published_at": "2026-02-19T20:32:37Z",
    "updated_at": "2026-02-19T20:32:39Z",
    "github_reviewed_at": "2026-02-19T20:32:37Z",
    "nvd_published_at": null,
    "withdrawn_at": null,
    "vulnerabilities": [
      {
        "package": {
          "ecosystem": "npm",
          "name": "@feathersjs/authentication-oauth"
        },
        "vulnerable_version_range": "<= 5.0.39",
        "first_patched_version": "5.0.40",
        "vulnerable_functions": []
      }
    ],
    "cvss_severities": {
      "cvss_v3": {
        "vector_string": null,
        "score": 0.0
      },
      "cvss_v4": {
        "vector_string": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
        "score": 8.2
      }
    },
    "cwes": [
      {
        "cwe_id": "CWE-200",
        "name": "Exposure of Sensitive Information to an Unauthorized Actor"
      }
    ],
    "credits": [
      {
        "user": {
          "login": "vvxhid",
          "id": 37417100,
          "node_id": "MDQ6VXNlcjM3NDE3MTAw",
          "avatar_url": "https://avatars.githubusercontent.com/u/37417100?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/vvxhid",
          "html_url": "https://github.com/vvxhid",
          "followers_url": "https://api.github.com/users/vvxhid/followers",
          "following_url": "https://api.github.com/users/vvxhid/following{/other_user}",
          "gists_url": "https://api.github.com/users/vvxhid/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/vvxhid/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/vvxhid/subscriptions",
          "organizations_url": "https://api.github.com/users/vvxhid/orgs",
          "repos_url": "https://api.github.com/users/vvxhid/repos",
          "events_url": "https://api.github.com/users/vvxhid/events{/privacy}",
          "received_events_url": "https://api.github.com/users/vvxhid/received_events",
          "type": "User",
          "user_view_type": "public",
          "site_admin": false
        },
        "type": "other"
      },
      {
        "user": {
          "login": "b0-n0-b0",
          "id": 36451867,
          "node_id": "MDQ6VXNlcjM2NDUxODY3",
          "avatar_url": "https://avatars.githubusercontent.com/u/36451867?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/b0-n0-b0",
          "html_url": "https://github.com/b0-n0-b0",
          "followers_url": "https://api.github.com/users/b0-n0-b0/followers",
          "following_url": "https://api.github.com/users/b0-n0-b0/following{/other_user}",
          "gists_url": "https://api.github.com/users/b0-n0-b0/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/b0-n0-b0/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/b0-n0-b0/subscriptions",
          "organizations_url": "https://api.github.com/users/b0-n0-b0/orgs",
          "repos_url": "https://api.github.com/users/b0-n0-b0/repos",
          "events_url": "https://api.github.com/users/b0-n0-b0/events{/privacy}",
          "received_events_url": "https://api.github.com/users/b0-n0-b0/received_events",
          "type": "User",
          "user_view_type": "public",
          "site_admin": false
        },
        "type": "other"
      }
    ],
    "cvss": {
      "vector_string": null,
      "score": null
    }
  }
}
