Repository navigation
fix(deps): remediate Go and x/crypto vulnerabilities - #838
plural-copilot[bot] wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
This PR was generated by the codex Plural Agent Runtime. Here's some useful information you might want to know to evaluate the ai's perfomance:
| Name | Details |
|---|---|
| 💬 Prompt | Create a focused remediation PR for fixable Go vulnerabilities in the plural CLI that is embedded in the deployed ghcr.io/pluralsh/console:sha-ec64d95 image. Do not modify pluralsh/console or GitOps. Return the exact changed files, resolved versions, validation, PR URL, and head branch.... |
| 🔗 Run history | View run history |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
[Medium impact] The changes reach CLI builds and the binary image used by CLI deployments. Fix the missing Docker copy before merging so the CLI image can build. FindingsSummaryUpdates Go to
Reviews (1) · Last reviewed commit: "fix(deps): remediate Go and crypto vulne..." · Reviewed by Greptile |
| sigs.k8s.io/structured-merge-diff/v6 v6.4.2 // indirect | ||
| ) | ||
|
|
||
| replace golang.org/x/crypto/openpgp => ./third_party/openpgp |
There was a problem hiding this comment.
The new local replacement points to third_party/openpgp/, but Dockerfile never copies that directory into the builder. It copies only go.mod and go.sum before go mod download, then only cmd/ and pkg/. Go cannot read third_party/openpgp/go.mod, so the CLI image cannot build. Copy the local module into the builder before downloading dependencies.
| // Copyright 2010 The Go Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style | ||
| // license that can be found in the LICENSE file. |
There was a problem hiding this comment.
The copied OpenPGP files refer to a BSD-style LICENSE, but the new directory does not include it. The root LICENSE contains only Plural's MIT license, leaving anyone redistributing this source without the upstream terms and disclaimer. Include the upstream license alongside the copied code.
| } | ||
| prefix := make([]byte, blockSize+2) | ||
|
|
||
| block.Encrypt(x.fre, x.fre) |
| prefix[i] = randData[i] ^ x.fre[i] | ||
| } | ||
|
|
||
| block.Encrypt(x.fre, prefix[:blockSize]) |
| prefixCopy := make([]byte, len(prefix)) | ||
| copy(prefixCopy, prefix) | ||
|
|
||
| block.Encrypt(x.fre, x.fre) |
| prefixCopy[i] ^= x.fre[i] | ||
| } | ||
|
|
||
| block.Encrypt(x.fre, prefix[:blockSize]) |
| } | ||
|
|
||
| if resync { | ||
| block.Encrypt(x.fre, prefix[2:]) |
| iv := make([]byte, cipherFunc.blockSize()) | ||
| c := cipher.NewCFBEncrypter(cipherFunc.new(keyEncryptingKey), iv) | ||
| encryptedCipherAndKey := make([]byte, keySize+1) | ||
| c.XORKeyStream(encryptedCipherAndKey, buf[1:]) |
| c := cipher.NewCFBEncrypter(cipherFunc.new(keyEncryptingKey), iv) | ||
| encryptedCipherAndKey := make([]byte, keySize+1) | ||
| c.XORKeyStream(encryptedCipherAndKey, buf[1:]) | ||
| c.XORKeyStream(encryptedCipherAndKey[1:], sessionKey) |
Summary
golang.org/x/cryptofromv0.58.0tov0.58.1-0.20261009181718-2f1f834330b2and regenerate Go module checksumsSecurity rationale
This remediates GO-2026-5932 in
golang.org/x/cryptoand CVE-2026-97054 / GO-2026-6859 in the Go standard library. The plural CLI is embedded in the deployedghcr.io/pluralsh/console:sha-ec64d95image, so rebuilding Console with this CLI revision addresses the scanner findings without changing the Console repository or GitOps.Validation
go mod verifypassed withgolang:1.27.4-alpine3.24