{"vuln_id":"CVE-2026-71861","aliases":["GHSA-wq26-3j2m-4hvv"],"description":"Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders","published_at":"2026-11-18T16:18:16.967000Z","modified_at":"2026-11-18T21:30:14.739697Z","first_seen_at":"2026-11-21T19:15:20.145634Z","severity":"high","severity_source":"nvd","cvss_score":7.4,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-290","CWE-294","CWE-347"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00214,"epss_percentile":0.11816,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-71861"},"matched_alias":null,"items":[{"id":10982,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-wq26-3j2m-4hvv: Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders","summary":"Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders\n\n### Summary\n\nThe `auth/aws` package of the `chainguard.dev/sdk` Go library provides Chainguard's AWS-backed identity federation (an AWS workload proves its identity to Chainguard by signing an AWS STS `GetCallerIdentity` request). Its verifier, `VerifyToken`, reads the `Chainguard-Audience` and `Chainguard-Identity` binding headers from a presented token but does not require them to be covered by the SigV4 signature. AWS STS validates only the headers listed in `SignedHeaders` and ignores all others, so an attacker can take a `GetCallerIdentity` request that a victim signed for a *different* relying party, inject or rewrite those two headers *after* signing (without invalidating the signature), and replay it to any service that authenticates callers with `VerifyToken`. The binding those headers were meant to provide is therefore forgeable — a verifier-side (relying-party) authentication bypass / cross-service token replay.\n\n### Background\n\nThe package uses the standard \"signed `GetCallerIdentity`\" pattern — the same approach HashiCorp Vault's AWS auth method and Kubernetes `aws-iam-authenticator` use: the caller signs an AWS STS `GetCallerIdentity` request with its AWS credentials to prove who it is, and presents that signed request as a bearer token. It has two halves:\n\n- `GenerateToken` (client): builds the `GetCallerIdentity` request, adds the `Chainguard-Audience` and `Chainguard-Identity` headers that bind the proof to a specific Chainguard audience (issuer) and assumable identity, SigV4-signs it, and serializes it into a token.\n- `VerifyToken` (relying party): decodes the token, checks those two binding headers, forwards the request to AWS STS to confirm the caller's real AWS identity (ARN), and returns it so a Chainguard token can be issued for that identity.\n\nThe binding headers exist so a proof minted for one audience/identity cannot be reused for another — a defense against cross-service replay — and their security depends entirely on being covered by the SigV4 signature.\n\n### Impact\n\nA relying party calling `auth/aws.VerifyToken` can be induced to accept a `GetCallerIdentity` proof that a victim produced for an unrelated purpose — for example a request minted for HashiCorp Vault's AWS auth method, Kubernetes `aws-iam-authenticator`, a different audience, or one captured from logs or a proxy — and to treat it as proof of the victim's AWS identity for an attacker-chosen audience and identity. The signed request is valid within its ~15-minute window. No access to the victim's AWS credentials is required; the attacker only needs a fresh signed `GetCallerIdentity` request from the victim principal.\n\nCode that uses only `auth/aws.GenerateToken` (token generation) is not affected — the generator correctly includes the binding headers in the signature. Only verifiers using `auth/aws.VerifyToken` are affected.\n\n### Affected versions\n\nAll released versions of `chainguard.dev/sdk` that include `auth/aws.VerifyToken`, up to and including `v0.1.106\n\nAffected: Go:chainguard.dev/sdk\n\nFixed in: 0.1.107\n\nReferences:\nhttps://github.com/chainguard-dev/sdk/security/advisories/GHSA-wq26-3j2m-4hvv\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-71861\nhttps://github.com/chainguard-dev/sdk/commit/d27997d62aaffe85f905cce4cbe8cdebbd5e24eb\nhttps://github.com/chainguard-dev/sdk\nhttps://github.com/chainguard-dev/sdk/releases/tag/v0.1.107","url":"https://osv.dev/vulnerability/GHSA-wq26-3j2m-4hvv","published_at":"2026-11-18T21:16:44Z","updated_at":"2026-11-18T21:30:14.739697Z","fetched_at":"2026-11-21T19:15:55.946347Z","severity":"high","cvss_score":7.4,"epss":0.00214,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"chainguard.dev/sdk","vuln_id":"CVE-2026-71861","vuln_ids":["CVE-2026-71861","GHSA-WQ26-3J2M-4HVV"],"tags":["osv","go","fix-available"],"cluster_id":2295,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10982","html":"https://vulnwatch.ve1ve2.com/item/10982"}},{"id":2432,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-wq26-3j2m-4hvv / CVE-2026-71861: Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders","summary":"Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders\n\n### Summary\n\nThe `auth/aws` package of the `chainguard.dev/sdk` Go library provides Chainguard's AWS-backed identity federation (an AWS workload proves its identity to Chainguard by signing an AWS STS `GetCallerIdentity` request). Its verifier, `VerifyToken`, reads the `Chainguard-Audience` and `Chainguard-Identity` binding headers from a presented token but does not require them to be covered by the SigV4 signature. AWS STS validates only the headers listed in `SignedHeaders` and ignores all others, so an attacker can take a `GetCallerIdentity` request that a victim signed for a *different* relying party, inject or rewrite those two headers *after* signing (without invalidating the signature), and replay it to any service that authenticates callers with `VerifyToken`. The binding those headers were meant to provide is therefore forgeable — a verifier-side (relying-party) authentication bypass / cross-service token replay.\n\n### Background\n\nThe package uses the standard \"signed `GetCallerIdentity`\" pattern — the same approach HashiCorp Vault's AWS auth method and Kubernetes `aws-iam-authenticator` use: the caller signs an AWS STS `GetCallerIdentity` request with its AWS credentials to prove who it is, and presents that signed request as a bearer token. It has two halves:\n\n- `GenerateToken` (client): builds the `GetCallerIdentity` request, adds the `Chainguard-Audience` and `Chainguard-Identity` headers that bind the proof to a specific Chainguard audience (issuer) and assumable identity, SigV4-signs it, and serializes it into a token.\n- `VerifyToken` (relying party): decodes the token, checks those two binding headers, forwards the request to AWS STS to confirm the caller's real AWS identity (ARN), and returns it so a Chainguard token can be issued for that identity.\n\nThe binding headers exist so a proof minted for one audience/identity cannot be reused for another — a defense against cross-service replay — and their security depends entirely on being covered by the SigV4 signature.\n\n### Impact\n\nA relying party calling `auth/aws.VerifyToken` can be induced to accept a `GetCallerIdentity` proof that a victim produced for an unrelated purpose — for example a request minted for HashiCorp Vault's AWS auth method, Kubernetes `aws-iam-authenticator`, a different audience, or one captured from logs or a proxy — and to treat it as proof of the victim's AWS identity for an attacker-chosen audience and identity. The signed request is valid within its ~15-minute window. No access to the victim's AWS credentials is required; the attacker only needs a fresh signed `GetCallerIdentity` request from the victim principal.\n\nCode that uses only `auth/aws.GenerateToken` (token generation) is not affected — the generator correctly includes the binding headers in the signature. Only verifiers using `auth/aws.VerifyToken` are affected.\n\n### Affected versions\n\nAll released versions of `chainguard.dev/sdk` that include `auth/aws.VerifyToken`, up to and including `v0.1.106\n\nAffected packages: go:chainguard.dev/sdk\nPatched: chainguard.dev/sdk 0.1.107","url":"https://github.com/advisories/GHSA-wq26-3j2m-4hvv","published_at":"2026-11-18T21:16:44Z","updated_at":"2026-11-18T21:16:45Z","fetched_at":"2026-11-21T19:15:18.416831Z","severity":"high","cvss_score":7.4,"epss":0.00214,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"chainguard.dev/sdk","vuln_id":"CVE-2026-71861","vuln_ids":["CVE-2026-71861","GHSA-WQ26-3J2M-4HVV"],"tags":["ghsa","go","CWE-290","CWE-294","CWE-347"],"cluster_id":2295,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2432","html":"https://vulnwatch.ve1ve2.com/item/2432"}},{"id":8026,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-71861: The Chainguard SDK is a public Go SDK for integrating with the Chainguard platform. Prior to 0.1.107, auth/aws.VerifyToken trusts the Chainguard-Audience and C…","summary":"The Chainguard SDK is a public Go SDK for integrating with the Chainguard platform. Prior to 0.1.107, auth/aws.VerifyToken trusts the Chainguard-Audience and Chainguard-Identity headers without requiring those headers to be covered by AWS SigV4 SignedHeaders. An attacker with a fresh STS GetCallerIdentity request signed by a victim can rewrite the unsigned binding headers and replay the proof to another relying party, causing the relying party to authenticate the victim’s AWS identity for an attacker-chosen audience and identity. Code that only uses auth/aws.GenerateToken is unaffected because the generator signs the binding headers, and exploitation requires a signed request within its validity window. This issue is fixed in version 0.1.107.\n\nReferences:\nhttps://github.com/chainguard-dev/sdk/commit/d27997d62aaffe85f905cce4cbe8cdebbd5e24eb\nhttps://github.com/chainguard-dev/sdk/releases/tag/v0.1.107\nhttps://github.com/chainguard-dev/sdk/security/advisories/GHSA-wq26-3j2m-4hvv","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71861","published_at":"2026-11-18T16:18:16.967000Z","updated_at":"2026-11-18T17:17:49.390000Z","fetched_at":"2026-11-21T19:15:31.483848Z","severity":"high","cvss_score":7.4,"epss":0.00214,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-71861","vuln_ids":["CVE-2026-71861","GHSA-WQ26-3J2M-4HVV"],"tags":["CWE-290","CWE-294","CWE-347"],"cluster_id":2296,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8026","html":"https://vulnwatch.ve1ve2.com/item/8026"}}]}