Skip to content

fix(deps): bump pacto to v1.4.1 and Go toolchain to 1.26.4 (resolve 3 stdlib CVEs)#100

Merged
edu-diaz merged 1 commit into
mainfrom
chore/bump-pacto-1.4.1-and-go-1.26.4
Jun 11, 2026
Merged

fix(deps): bump pacto to v1.4.1 and Go toolchain to 1.26.4 (resolve 3 stdlib CVEs)#100
edu-diaz merged 1 commit into
mainfrom
chore/bump-pacto-1.4.1-and-go-1.26.4

Conversation

@edu-diaz

@edu-diaz edu-diaz commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Two related maintenance updates:

  1. Update the pacto library github.com/trianalab/pacto v1.4.0 → v1.4.1 — the version that includes the dashboard local-source scan fix (pacto#178: a pacto.yaml under a hidden directory no longer roots local discovery at $HOME and hangs /api/services).
  2. Resolve the 3 vulnerabilities in the published controller image's security report by bumping the Go build toolchain 1.26.3 → 1.26.4.

All three reported CVEs are in the Go standard library baked into the binary (the image is distroless static — no OS-package CVEs). They are all fixed in Go 1.26.4, so rebuilding with golang:1.26.4 clears them:

Severity CVE Component Fixed in
HIGH CVE-2026-42504 stdlib net/textproto (MIME header decode) 1.26.4
MEDIUM CVE-2026-27145 stdlib crypto/x509 VerifyHostname 1.26.4
MEDIUM CVE-2026-42507 stdlib net/textproto (error handling) 1.26.4

Changes

  • go.mod / go.sum: github.com/trianalab/pacto v1.4.0 → v1.4.1 (go mod tidy).
  • Dockerfile: builder golang:1.26.3golang:1.26.4 (this is what determines the published image's stdlib).
  • .github/workflows/ci.yml (×2) and .github/workflows/auto-release.yml: setup-go 1.26.31.26.4 to keep CI/release consistent with the build toolchain.

Related Issues

Picks up TrianaLab/pacto#178 (released in pacto v1.4.1). Addresses the artifacthub security report for pacto-operator 3.2.0.

Checklist

  • Code compiles without errors
  • All tests pass (make test) — controllers at 100% coverage
  • Linter passes (go vet; make test runs fmt/vet)
  • Tests added/updated for new functionality or bug fixes — N/A (dependency + toolchain bump; no behavior change)
  • Documentation updated (if applicable) — N/A
  • Commit messages follow the <type>: <description> convention

Testing

  • go build ./..., go vet ./..., and make test (envtest) all pass.
  • Proof the CVEs are resolved: rebuilt the controller image locally with golang:1.26.4 and re-scanned with Trivy:
    • Before (pacto-controller:3.2.0, stdlib v1.26.3): 1 HIGH + 2 MEDIUM (the 3 CVEs above).
    • After (rebuilt, stdlib v1.26.4): 0 HIGH/MEDIUM/CRITICAL.

Update github.com/trianalab/pacto v1.4.0 -> v1.4.1, which includes the
dashboard local-source scan fix (#178: a pacto.yaml under a hidden dir no
longer roots local discovery at $HOME and hangs /api/services).

Bump the Go build toolchain 1.26.3 -> 1.26.4 (Dockerfile builder + CI/release
setup-go) to resolve the three stdlib vulnerabilities reported for the
published controller image (all fixed in Go 1.26.4):

  - CVE-2026-42504 (HIGH)   net/textproto MIME header decoding
  - CVE-2026-27145 (MEDIUM) crypto/x509 VerifyHostname
  - CVE-2026-42507 (MEDIUM) net/textproto error handling

Verified: go build/vet and `make test` pass (controllers at 100% coverage);
rebuilding the image with golang:1.26.4 and re-scanning with Trivy reports 0
HIGH/MEDIUM/CRITICAL vulnerabilities (stdlib now v1.26.4).
@edu-diaz edu-diaz merged commit 1271734 into main Jun 11, 2026
11 checks passed
@edu-diaz edu-diaz deleted the chore/bump-pacto-1.4.1-and-go-1.26.4 branch June 11, 2026 08:25
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.

1 participant