Skip to content
Heist/ feed
Back to feed
Medium

Pomerium exposed OAuth2 access and ID tokens in user info endpoint response

Type: advisorySources: OSV

Pomerium is an identity and context-aware access proxy. Prior to version 0.26.1, the Pomerium user info page (at `/.pomerium`) unintentionally included serialized OAuth2 access and ID tokens from the logged-in user's session. These tokens are not intended to be exposed to end users. This issue may be more severe in the presence of a cross-site scripting vulnerability in an upstream application proxied through Pomerium. If an attacker could insert a malicious script onto a web page proxied through Pomerium, that script could access these tokens by making a request to the `/.pomerium` endpoint. Upstream applications that authenticate only the ID token may be vulnerable to user impersonation using a token obtained in this manner. Note that an OAuth2 access token or ID token by itself is not sufficient to hijack a user's Pomerium session. Upstream applications should not be vulnerable to user impersonation via these tokens provided the application verifies the Pomerium JWT for each request, the connection between Pomerium and the application is secured by mTLS, or the connection between Pomerium and the application is otherwise secured at the network layer. The issue is patched in Pomerium v0.26.1. No known workarounds are available.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-39315
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:46 UTC · Revision 1

Source evidence

Pomerium exposed OAuth2 access and ID tokens in user info endpoint response

core-osv · Original source

Published 2 Jul 2024, 20:02 UTC

Pomerium is an identity and context-aware access proxy. Prior to version 0.26.1, the Pomerium user info page (at `/.pomerium`) unintentionally included serialized OAuth2 access and ID tokens from the logged-in user's session. These tokens are not intended to be exposed to end users. This issue may be more severe in the presence of a cross-site scripting vulnerability in an upstream application proxied through Pomerium. If an attacker could insert a malicious script onto a web page proxied through Pomerium, that script could access these tokens by making a request to the `/.pomerium` endpoint. Upstream applications that authenticate only the ID token may be vulnerable to user impersonation using a token obtained in this manner. Note that an OAuth2 access token or ID token by itself is not sufficient to hijack a user's Pomerium session. Upstream applications should not be vulnerable to user impersonation via these tokens provided the application verifies the Pomerium JWT for each request, the connection between Pomerium and the application is secured by mTLS, or the connection between Pomerium and the application is otherwise secured at the network layer. The issue is patched in Pomerium v0.26.1. No known workarounds are available.

osv:CVE-2024-39315
Complete source record
{
  "id": "79cfc9d72024a599f440d993e3dea6f63f2fb6abef2a3ca4b6e849e2e3aedf98",
  "url": "https://osv.dev/vulnerability/CVE-2024-39315",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Pomerium exposed OAuth2 access and ID tokens in user info endpoint response",
    "summary": "Pomerium is an identity and context-aware access proxy. Prior to version 0.26.1, the Pomerium user info page (at `/.pomerium`) unintentionally included serialized OAuth2 access and ID tokens from the logged-in user's session. These tokens are not intended to be exposed to end users. This issue may be more severe in the presence of a cross-site scripting vulnerability in an upstream application proxied through Pomerium. If an attacker could insert a malicious script onto a web page proxied through Pomerium, that script could access these tokens by making a request to the `/.pomerium` endpoint. Upstream applications that authenticate only the ID token may be vulnerable to user impersonation using a token obtained in this manner. Note that an OAuth2 access token or ID token by itself is not sufficient to hijack a user's Pomerium session. Upstream applications should not be vulnerable to user impersonation via these tokens provided the application verifies the Pomerium JWT for each request, the connection between Pomerium and the application is secured by mTLS, or the connection between Pomerium and the application is otherwise secured at the network layer. The issue is patched in Pomerium v0.26.1. No known workarounds are available.",
    "evidence": "osv:CVE-2024-39315",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-39315",
      "aliases": [
        "CVE-2024-39315",
        "GHSA-rrqr-7w59-637v",
        "GO-2024-2965"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pomerium/pomerium",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "eb8dc899e9ce7a940a79861a840718a1f344a4b5"
                },
                {
                  "fixed": "4c7c4320afb2ced70ba19b46de1ac4383f3daa48"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:pomerium:pomerium:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.26.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4c7c4320afb2ced70ba19b46de1ac4383f3daa48"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.26.0",
            "v0.25.0",
            "v0.23.0",
            "v0.20.0",
            "v0.19.0",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "v0.15.6",
            "v0.15.0",
            "v0.14.0",
            "v0.14.0-rc2",
            "v0.12.0",
            "v0.11.0",
            "v0.11.0-rc2",
            "v0.11.0-rc1",
            "v0.10.0",
            "v0.10.0-rc3",
            "v0.10.0-rc2",
            "v0.10.0-rc1",
            "v0.9.0",
            "v0.8.0",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.0",
            "v0.5.0",
            "v0.4.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.0",
            "v0.0.5",
            "v0.0.4",
            "v0.0.3",
            "v0.0.2",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39315.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.620911759Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39315.json",
        "https://github.com/pomerium/pomerium/security/advisories/GHSA-rrqr-7w59-637v",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-39315",
        "https://github.com/pomerium/pomerium/commit/4c7c4320afb2ced70ba19b46de1ac4383f3daa48"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-201"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39315.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-39315",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513602,
  "published_at": "2024-07-02T20:02:06.12+00:00"
}