Repository navigation
Description
Problem
.trivyignore-mcp-server ignores two HIGH findings in the pinned kubectl v1.37.2:
CVE-2026-56851: golang.org/x/text v0.40.0. The fix is in x/text 0.41.0.CVE-2026-78669: golang.org/x/net v0.57.0. The fix is in x/net 0.60.0.
No kubectl release holds the fixes. On 2026-11-14, v1.37.2 is the newest stable release (https://dl.k8s.io/release/stable.txt), and v1.38.0-beta.0 is a pre-release. The first entries are from 2026-11-08. Thus SECURITY.md "A Finding with No Fix" lets an agent renew them for 3 days at a time, but only up to 2026-11-22.
Fix
- When a kubectl release holds x/text 0.41.0 or later and x/net 0.60.0 or later, bump
kubectlinsrc/devops_cli/tools_lock/tools.lockand in.devcontainer/Dockerfile, and delete the two entries. - Until then, on each expiry date, renew the two entries for 3 days with new proof, up to 2026-11-22. After that date, the owner decides.
Evidence
- Issue fix(security): renew the expired MCP server Trivy ignores and bump helm #5573 renews the two entries to
exp:2026-11-17and bumps helm to v4.3.2, which removes the third entry (CVE-2026-111943). trivy rootfs --scanners vuln --severity HIGH,CRITICALon the kubectl v1.37.2 binary shows the two findings.
Source: #5573
Proposed design
Problem statement
The MCP Server Image scan reads .trivyignore and .trivyignore-mcp-server, and Trivy's ignore format has no path field. The CVE-2026-78661 entry of .trivyignore exists for gh, expires on 2026-11-21, and also hides the finding in the pinned kubectl v1.37.2 (golang.org/x/net 0.57.0, fixed in 0.62.0). No stable kubectl release holds x/net 0.62.0 or later and x/text 0.41.0 or later on 2026-11-14, so the bump waits on an upstream release. The change gives the kubectl finding its own entry in .trivyignore-mcp-server, with a 3-day expiry inside the 14-day cap that ends on 2026-11-22, so the MCP scan stays green when the gh entry expires; the bump and the deletion of the entries are deferred until a release qualifies.
Acceptance criteria
Requirement: The temporary entry records its proof
The change MUST record the Trivy proof of the temporary entry: the three HIGH findings of kubectl v1.37.2, the module versions and the date of the read.
Scenario: The change records the findings and the date
- WHEN a test reads
proposal.mdof the change folder whose name starts with5582- - THEN the text names CVE-2026-56851, CVE-2026-78669 and CVE-2026-78661, golang.org/x/net 0.57.0, golang.org/x/text 0.40.0, the fixes 0.62.0 and 0.41.0, and 2026-11-14.
Requirement: The MCP ignore file holds the kubectl x/net entry
.trivyignore-mcp-server MUST hold a CVE-2026-78661 entry whose comment names the kubectl finding, the fix in golang.org/x/net 0.62.0 and a tracking issue.
Scenario: The finding has its own entry
- WHEN a test reads
.trivyignore-mcp-server - THEN a non-comment line is
CVE-2026-78661 exp:YYYY-MM-DD, and the comment above it names kubectl, 0.62.0 and#<number>.
Requirement: The MCP scan does not depend on the gh entry
The MCP Server Image scan MUST keep the CVE-2026-78661 entry when the CVE-2026-78661 entry of .trivyignore is absent, so the kubectl finding stays ignored after 2026-11-21.
Scenario: The gh entry is absent from the scan input
- WHEN a test removes every
CVE-2026-78661line from.trivyignoreand reads both ignore files - THEN
.trivyignore-mcp-serverstill holds aCVE-2026-78661entry with anexp:date.
Requirement: Each MCP ignore entry stays valid
Each entry of .trivyignore-mcp-server SHALL hold a comment with its reason and tracking issue, and an exp:YYYY-MM-DD date that is not past.
Scenario: Every entry has a reason, a tracking issue and a future expiry
- WHEN a test reads each entry line of
.trivyignore-mcp-server - THEN the comment above it is non-empty and holds an issue number, and the line holds an
exp:date after the test date.
Existing Tool Considered
No alternatives check has run. The need is a time-limited suppression of a HIGH finding that no released version fixes, and Trivy's own .trivyignore format covers it (.trivyignore-mcp-server); the change builds no code, so no build cost applies. The pinned tool that causes the finding is kubectl (kubernetes/kubernetes, Apache-2.0, maintained, src/devops_cli/tools_lock/tools.lock:54). It lacks a stable release whose binary holds golang.org/x/net 0.62.0 or later and golang.org/x/text 0.41.0 or later: on 2026-11-14 v1.37.2 is the newest stable with x/net 0.57.0 and x/text 0.40.0, and v1.38.0-beta.0 is a pre-release that the project rejected as a pin (openspec/changes/archive/2026-11-10-4336-renew-the-mcp-server-trivy-ignores/design.md:14).
Key questions
- Which kubectl release qualifies for the bump?: The newest stable kubectl release whose binary holds golang.org/x/net 0.62.0 or later and golang.org/x/text 0.41.0 or later, proven from the release's module list with the date it was read. No release qualifies on 2026-11-14: v1.37.2 has x/net 0.57.0 and x/text 0.40.0, and v1.38.0-beta.0 is a pre-release, which the project rejected. The 0.60.0 threshold of the body is too low, because CVE-2026-78661 fixes in x/net 0.62.0. (best practice) [sources: CONTRIBUTING.md:35, openspec/changes/archive/2026-11-10-4336-renew-the-mcp-server-trivy-ignores/design.md:14, SECURITY.md:78, src/devops_cli/tools_lock/tools.lock:54]
- Chosen: The newest stable release with x/net 0.62.0 or later and x/text 0.41.0 or later. CONTRIBUTING.md (Dependency Versions) pins the newest release that fixes the known security issues and passes the tests, and SECURITY.md asks for the release's module list and the date of the read as proof.
- Rejected: v1.38.0-beta.0, the newer pre-release. The design of fix(security): renew the MCP server Trivy ignores and bump kubectl and helm #4336 rejected a pre-release as a pin, and a pre-release is not the newest release that the surrounding tools support.
- Rejected: A kubectl built from source with the fixed modules. The design of fix(security): renew the MCP server Trivy ignores and bump kubectl and helm #4336 and AGENTS.md rule 3 reject a tool that the project builds and keeps when an upstream release is the maintained source.
- Rejected: The x/net 0.60.0 threshold of the body. The binary keeps CVE-2026-78661 in x/net 0.57.0, and only the
.trivyignoreentry for gh hides it (fixed in 0.62.0).
- Which files hold the kubectl pin?:
src/devops_cli/tools_lock/tools.lockholds[binary.kubectl].version(line 55) and theurlandsha256of four platforms (lines 61-75)..devcontainer/Dockerfileholds a# kubectlcomment (line 19) and theurlandshaof linux-amd64 and linux-arm64 (lines 21-22). [sources: src/devops_cli/tools_lock/tools.lock:54, src/devops_cli/tools_lock/tools.lock:55, src/devops_cli/tools_lock/tools.lock:62] - Which ignore file holds the kubectl findings?:
.trivyignore-mcp-serverholds CVE-2026-56851 (line 9) and CVE-2026-78669 (line 12). The MCP Server Image scan reads.trivyignore,.trivyignore-mcp-server(ci.yml:699, release.yml:653)..trivyignoreholdsCVE-2026-78661 exp:2026-11-21for gh (lines 4-8), and Trivy's file format has no path field, so that entry also matches the ID in the kubectl binary. [sources: .github/workflows/ci.yml:699, .github/workflows/release.yml:653] - What do the security rules allow for these ignore entries?: An agent adds one entry with a reason, a link to the tracking issue and an
exp:date of the day plus 3 days. It renews the entry for 3 days at a time, up to 14 days in all. After that the owner decides. It never ignores a CRITICAL finding, and never a finding that has a fix. The first MCP entries are from 2026-11-08, so the cap is 2026-11-22. [sources: SECURITY.md:76, SECURITY.md:81, SECURITY.md:85, SECURITY.md:88] - Who decides when no kubectl release holds the fixes by 2026-11-22?: The owner decides. Recommendation: the owner names a longer date in the tracking issue and in the entry, or accepts the failing MCP scan. An agent adds no entry past the 14-day cap without that decision. (a person decides) [sources: SECURITY.md:85]
- Does this change add a CVE-2026-78661 entry to
.trivyignore-mcp-server?: Yes. The.trivyignoreentry for gh expires on 2026-11-21, before the 14-day cap that ends on 2026-11-22, and the bump waits on an upstream release, so the MCP scan needs its own entry for the kubectl finding. The entry is HIGH, has no fix, and the file is the narrowest scope that Trivy's format allows. (best practice) [sources: SECURITY.md:81, SECURITY.md:85, .github/workflows/ci.yml:699]- Chosen: Add the MCP's own CVE-2026-78661 entry now. The gh entry expires on 2026-11-21 and no stable kubectl release holds x/net 0.62.0 on 2026-11-14, so the bump may not land before that date; the MCP entry keeps the scan green and is allowed for a HIGH finding with no fix.
- Rejected: Add no entry and rely on the bump. The bump waits on an upstream release, so the scan fails on 2026-11-21 when the
.trivyignoreentry expires and no kubectl release holds the fix. - Rejected: Delete the
.trivyignoreentry for gh. That unmasks the gh finding (CVE-2026-78661 in x/net 0.60.0, fixed in 0.62.0) in the runner and service scans, and fix(ci): bump the pinned gh and drop the CVE-2026-78661 ignore #3920 tracks the gh bump.
- Does this change wait on fix(security): renew the expired MCP server Trivy ignores and bump helm #5573?: Yes. fix(security): renew the expired MCP server Trivy ignores and bump helm #5573 renews the two kubectl entries to 2026-11-17 and bumps helm to 4.3.2, and it has not landed: the entries still say
exp:2026-11-14and helm is still 4.3.1. This change adds a third entry after those lines, so it waits on fix(security): renew the expired MCP server Trivy ignores and bump helm #5573 rather than renewing the same lines twice. (best practice) [sources: src/devops_cli/tools_lock/tools.lock:105]- Chosen: Wait for fix(security): renew the expired MCP server Trivy ignores and bump helm #5573. It owns the renewal of the two kubectl entries and the helm bump, and the repository still shows the old dates and helm 4.3.1.
- Rejected: Renew the same lines in this change. Two open changes would edit the same entry lines of
.trivyignore-mcp-server, and the base still holds the dates that fix(security): renew the expired MCP server Trivy ignores and bump helm #5573 replaces.
Open questions
- Who decides when no kubectl release holds the fixes by 2026-11-22? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 14, 2026
Two HIGH CVEs are present in the pinned kubectl binary and will cause CI failures when the time-limited ignore entries expire.Both manage Trivy ignore entries for the MCP server kubectl binary and aim to bump kubectl, but #4336 was a specific renewal cycle (closed) while the candidate covers the next cycle and the eventual bump.dan-petty commentedon Nov 14, 2026
The fix condition of this issue is not complete. kubectl v1.37.2 has a third HIGH finding in x/net, and the ignore file of an other tool hides it.
Proof (2026-11-14, Trivy 0.75.0,
trivy rootfs --scanners vuln --severity HIGH,CRITICAL --ignore-unfixedon the kubectl 1.37.2 linux-amd64 binary, with no ignore file):The
MCP Server Imagescan reads.trivyignore,.trivyignore-mcp-server. The entryCVE-2026-78661 exp:2026-11-21in.trivyignoreis forgh(#3920), but the file format has no path field, so it also hides the kubectl finding.Effect:
MCP Server Imagescan fails on kubectl unless kubectl is bumped or.trivyignore-mcp-servergets its own CVE-2026-78661 entry. That date is before the cap of 2026-11-22.Found in the review of #5584.
fix(security): bump helm to 4.3.2 and renew the kubectl Trivy ignores (…
devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at ffce5d9 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 15, 2026
Released in v0.149.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.149.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 05:17 UTC