Vulnerabilities in pkg:golang/chainguard.dev/sdk

PACKAGE
Advisory Identifier: GHSA-wq26-3j2m-4hvv
Advisory Summary

CVE-2026-71861 is a HIGH (CVSS 7.4) aws sigv4 token replay vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting Chainguard SDK libraries in the Go ecosystem. The issue involves aws sigv4 token replay in auth/aws.verifytoken — chainguard-audience/chainguard-identity binding headers not required in signedheaders. Remediation is available by upgrading affected packages to version 0.1.107.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/chainguard.dev/sdk

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/chainguard.dev/sdk. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wq26-3j2m-4hvv CVE-2026-71861 HIGH Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders

CVE-2026-71861 at a Glance

CVE Identifier CVE-2026-71861
GHSA Identifier GHSA-wq26-3j2m-4hvv
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-294: Authentication Bypass by Capture-replay
Affected Product Chainguard SDK
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-71861

To remediate this vulnerability, upgrade all affected Chainguard SDK dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

chainguard.dev/sdk fixed: 0.1.107
Upgrade chainguard.dev/sdk to 0.1.107
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for chainguard.dev/sdk

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-71861, inspect your project dependencies for Chainguard SDK:

inspect dependencies for chainguard.dev/sdk

Analyze the terminal output to locate any version of Chainguard SDK in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.107), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). In Chainguard SDK, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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).

CVE-2026-71861 Affected Chainguard SDK Versions

1 component(s)
Fixed Versions:
0.1.107
Product / Package Ecosystem Affected Versions Fixed Version
chainguard.dev/sdk
Go
< 0.1.107
0.1.107

References

Frequently Asked Questions

What is CVE-2026-71861?
CVE-2026-71861 is a security vulnerability in Chainguard SDK involving AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders under CWE-294: Authentication Bypass by Capture-replay.
Which Chainguard SDK versions are affected?
Affected versions include releases prior to 0.1.107 across affected packages: chainguard.dev/sdk.
What version fixes CVE-2026-71861?
Upgrading to 0.1.107 (or the latest patched release for your respective branch) resolves the vulnerability.
Is chainguard.dev/sdk affected?
Yes, chainguard.dev/sdk is affected in releases prior to 0.1.107. Upgrade your dependency to 0.1.107 or later.
What is the CVSS score of CVE-2026-71861?
CVE-2026-71861 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-71861?
CVE-2026-71861 is classified under CWE-294: Authentication Bypass by Capture-replay (A capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes).).
How can I check Go dependencies for CVE-2026-71861?
Run the dependency tree command: 'inspect dependencies for chainguard.dev/sdk'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wq26-3j2m-4hvv",
  "modified" : "2026-11-18T21:16:44Z",
  "published" : "2026-11-18T21:16:44Z",
  "aliases" : [ "CVE-2026-71861" ],
  "summary" : "Chainguard SDK: AWS SigV4 token replay in auth/aws.VerifyToken — Chainguard-Audience/Chainguard-Identity binding headers not required in SignedHeaders",
  "details" : "### 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\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nThere 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.\n\n### References\n\n- AWS Signature Version 4 — signed headers: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv.html\n- Comparable mitigation: HashiCorp Vault requires the `X-Vault-AWS-IAM-Server-ID` header to appear in `SignedHeaders` before trusting it.\n\n### Credits\n\nReported by Kris Kennaway (Datadog).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "chainguard.dev/sdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.107"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.1.106"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/chainguard-dev/sdk/security/advisories/GHSA-wq26-3j2m-4hvv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-71861"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chainguard-dev/sdk/commit/d27997d62aaffe85f905cce4cbe8cdebbd5e24eb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/chainguard-dev/sdk"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chainguard-dev/sdk/releases/tag/v0.1.107"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290", "CWE-294", "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-18T21:16:44Z",
    "nvd_published_at" : "2026-11-18T16:18:16Z"
  }
}