HIGH · CVSS 3.1 7.4 EPSS 0.3% · 11th percentile CWE-290CWE-294CWE-347

CVE-2026-71861: Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken - Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders

Published 2026-11-18 · Updated 2026-11-23 · Also known as GHSA-wq26-3j2m-4hvv, GO-2026-6996

Summary

A flaw in the auth/aws.VerifyToken function of chainguard.dev/sdk fails to require binding headers to be covered by AWS SigV4 signatures, enabling cross-service token replay attacks. Maintainers of relying-party services using chainguard.dev/sdk to verify AWS-backed identities should upgrade to version 0.1.107 or later.

Who is affected

Services calling auth/aws.VerifyToken in chainguard.dev/sdk versions prior to 0.1.107 are vulnerable to verifier-side authentication bypass. An attacker can capture a victim's signed AWS STS GetCallerIdentity request-such as one intended for Vault or Kubernetes-and append or modify unsigned Chainguard-Audience and Chainguard-Identity headers. This allows the attacker to impersonate the victim's AWS identity within the request's ~15-minute validity window without needing access to the victim's AWS credentials. Code using only auth/aws.GenerateToken is not affected.

Exploitability

The vulnerability has a CVSS 3.1 base score of 7.4 (High) with a vector of AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, reflecting remote access without required privileges or user interaction but with high attack complexity. The EPSS score is 0.002 (0.118th percentile). CISA KEV confirms there is currently no known active exploitation in the wild.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go chainguard.dev/sdk >= 0, < 0.1.107 0.1.107 go get chainguard.dev/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

FAQ

What specifically caused the token replay vulnerability?

AWS STS only validates headers listed in the SigV4 SignedHeaders parameter. Because VerifyToken read Chainguard-Audience and Chainguard-Identity headers without confirming they were included in SignedHeaders, attackers could inject or alter those headers on valid AWS STS requests signed for other services.

Are applications that only generate AWS identity tokens vulnerable?

No. The auth/aws.GenerateToken client implementation correctly includes the binding headers in the SigV4 signature. Only services acting as relying parties that call auth/aws.VerifyToken are affected.

Is there a workaround available without upgrading the library?

There is no documented workaround. Operators of services verifying AWS-backed identities using VerifyToken must upgrade chainguard.dev/sdk to version 0.1.107 or later.

Original advisory description
### Summary The `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. ### Background The 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: - `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. - `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. The 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. ### Impact A 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. Code 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. ### Affected versions All released versions of `chainguard.dev/sdk` that include `auth/aws.VerifyToken`, up to and including `v0.1.106`. ### Patches Fixed in `chainguard.dev/sdk` [v0.1.107](https://github.com/chainguard-dev/sdk/releases/tag/v0.1.107). The fix requires both the `Chainguard-Audience` and `Chainguard-Identity` headers to be present in the request's SigV4 `SignedHeaders` before their values are trusted (mirroring the mitigation HashiCorp Vault applies by requiring `X-Vault-AWS-IAM-Server-ID` to be signed). It additionally adds defense-in-depth checks on the request method, the STS host, and the request timestamp. Upgrade to v0.1.107 or later. ### Workarounds There is no client-side workaround; the fix is in the verifier. Operators of services that verify AWS-backed identities with `VerifyToken` should upgrade as soon as the patched release is available. ### References - AWS Signature Version 4 - signed headers: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv.html - Comparable mitigation: HashiCorp Vault requires the `X-Vault-AWS-IAM-Server-ID` header to appear in `SignedHeaders` before trusting it. ### Credits Reported by Kris Kennaway (Datadog).

References

Source records: GHSA-wq26-3j2m-4hvv, GO-2026-6996 (OSV.dev) · EPSS by FIRST, 2026-11-26.