Skip to content

fix(security): bump jose2go to v1.7.0 (GO-2025-4123, GO-2023-2409)#2619

Merged
dgageot merged 1 commit intodocker:mainfrom
cogvel:security/bump_jose2go
May 4, 2026
Merged

fix(security): bump jose2go to v1.7.0 (GO-2025-4123, GO-2023-2409)#2619
dgageot merged 1 commit intodocker:mainfrom
cogvel:security/bump_jose2go

Conversation

@tdabasinskas
Copy link
Copy Markdown
Contributor

@tdabasinskas tdabasinskas commented May 4, 2026

Addresses the following reported by govulncheck:

=== Symbol Results ===

Vulnerability #1: GO-2025-4123
    Denial-of-Service (DoS) via crafted JSON Web Encryption (JWE) token high
    compression ratio in github.com/dvsekhvalnov/jose2go
  More info: https://pkg.go.dev/vuln/GO-2025-4123
  Module: github.com/dvsekhvalnov/jose2go
    Found in: github.com/dvsekhvalnov/jose2go@v1.5.0
    Fixed in: github.com/dvsekhvalnov/jose2go@v1.7.0
    Example traces found:
      #1: pkg/tools/mcp/tokenstore_keyring.go:94:25: mcp.KeyringTokenStore.load calls keyring.fileKeyring.Get, which calls jose2go.Decode

Vulnerability #2: GO-2023-2409
    Denial of service when decrypting attacker controlled input in
    github.com/dvsekhvalnov/jose2go
  More info: https://pkg.go.dev/vuln/GO-2023-2409
  Module: github.com/dvsekhvalnov/jose2go
    Found in: github.com/dvsekhvalnov/jose2go@v1.5.0
    Fixed in: github.com/dvsekhvalnov/jose2go@v1.5.1-0.20231206184617-48ba0b76bc88
    Example traces found:
      #1: pkg/tools/mcp/tokenstore_keyring.go:94:25: mcp.KeyringTokenStore.load calls keyring.fileKeyring.Get, which calls jose2go.Decode
      #2: pkg/tools/mcp/tokenstore_keyring.go:156:19: mcp.KeyringTokenStore.persistLocked calls keyring.fileKeyring.Set, which calls jose2go.Encrypt

Your code is affected by 2 vulnerabilities from 1 module.

There was already #2361 - not sure about the reason it was closed.

@tdabasinskas tdabasinskas requested a review from a team as a code owner May 4, 2026 06:13
@tdabasinskas tdabasinskas changed the title fix(security): bump jose2go to v1.8.0 (GO-2025-4123, GO-2023-2409) fix(security): bump jose2go to v1.7.0 (GO-2025-4123, GO-2023-2409) May 4, 2026
@tdabasinskas tdabasinskas force-pushed the security/bump_jose2go branch from 88b2a8e to 2d9a37d Compare May 4, 2026 06:14
tdabasinskas added a commit to cogvel/docker-agent that referenced this pull request May 4, 2026
Addresses the following reported by `govulncheck`:

```plain
=== Symbol Results ===

Vulnerability #1: GO-2025-4123
    Denial-of-Service (DoS) via crafted JSON Web Encryption (JWE) token high
    compression ratio in github.com/dvsekhvalnov/jose2go
  More info: https://pkg.go.dev/vuln/GO-2025-4123
  Module: github.com/dvsekhvalnov/jose2go
    Found in: github.com/dvsekhvalnov/jose2go@v1.5.0
    Fixed in: github.com/dvsekhvalnov/jose2go@v1.7.0
    Example traces found:
      #1: pkg/tools/mcp/tokenstore_keyring.go:94:25: mcp.KeyringTokenStore.load calls keyring.fileKeyring.Get, which calls jose2go.Decode

Vulnerability #2: GO-2023-2409
    Denial of service when decrypting attacker controlled input in
    github.com/dvsekhvalnov/jose2go
  More info: https://pkg.go.dev/vuln/GO-2023-2409
  Module: github.com/dvsekhvalnov/jose2go
    Found in: github.com/dvsekhvalnov/jose2go@v1.5.0
    Fixed in: github.com/dvsekhvalnov/jose2go@v1.5.1-0.20231206184617-48ba0b76bc88
    Example traces found:
      #1: pkg/tools/mcp/tokenstore_keyring.go:94:25: mcp.KeyringTokenStore.load calls keyring.fileKeyring.Get, which calls jose2go.Decode
      #2: pkg/tools/mcp/tokenstore_keyring.go:156:19: mcp.KeyringTokenStore.persistLocked calls keyring.fileKeyring.Set, which calls jose2go.Encrypt

Your code is affected by 2 vulnerabilities from 1 module.
```

There was already docker#2361 - not
sure about the reason it was closed.

Upstream PR: docker#2619.
@dgageot dgageot merged commit 85f1d5a into docker:main May 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants