Skip to content

build(deps): bump github.com/moby/go-archive from 0.2.0 to 0.3.0 - #650

Merged
ImLunaHey merged 2 commits into
mainfrom
dependabot/go_modules/github.com/moby/go-archive-0.3.0
Nov 18, 2026
Merged

ImLunaHey merged 2 commits into
mainfrom
dependabot/go_modules/github.com/moby/go-archive-0.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/moby/go-archive from 0.2.0 to 0.3.0.

Release notes

Sourced from github.com/moby/go-archive's releases.

v0.3.0

Security

This release fixes CVE-2026-17106 / GHSA-hfg8-hc9c-6c3h, where a crafted tar archive could use links to cause extraction operations to create or overwrite files outside the intended destination directory.

The issue affected Unpack, UnpackLayer, Untar, UntarUncompressed, and the ApplyLayer helpers. Users should upgrade and avoid extracting untrusted archives with earlier versions.

What's Changed

Test and CI changes

Full Changelog: moby/go-archive@v0.2.1...v0.3.0

v0.2.1

What's Changed

... (truncated)

Commits
  • 1c23372 Merge pull request #43 from thaJeztah/fix_rebase_from_root
  • 8829a25 RebaseArchiveEntries: fix archive path rebasing
  • c583b20 Merge pull request #90 from thaJeztah/chtimes_nofollow
  • a0576cb archive: do not follow reparse points in chtimes
  • b0d5baf archive: add test for unexpected reparse points in chtimes
  • c23e4e5 Merge pull request #79 from thaJeztah/test_chtimes
  • aa1541a archive: fix creation time updates on Windows
  • c68e60d archive: add Windows creation time test
  • a11565d Merge pull request #91 from thaJeztah/breakout_unwrap
  • b680a61 Merge pull request #89 from moby/dependabot/github_actions/codeql-actions-ba9...
  • Additional commits viewable in compare view


Note

Medium Risk
Security-related dependency upgrade for tar extraction; behavior change is limited to hardened archive handling in transitive build/docker code paths.

Overview
Updates github.com/moby/go-archive from 0.2.0 to 0.3.0 in go.mod and go.sum only—no application code changes.

This pulls in v0.3.0 fixes for CVE-2026-17106 (crafted tar archives could escape the target directory during unpack/untar). The CLI already depends on this module (e.g. github.com/moby/go-archive/compression in buildx Dockerfile handling), so the bump hardens archive-related paths used indirectly through Docker/build tooling.

Reviewed by Cursor Bugbot for commit dff54c9. Bugbot is set up for automated code reviews on this repo. Configure here.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Oct 26, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Approved. Cursor Bugbot completed with no findings that need human review on this go-archive 0.2.0→0.3.0 bump (go.mod/go.sum only).

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/moby/go-archive-0.3.0 branch 2 times, most recently from 5c09be2 to 011b867 Compare November 1, 2026 20:39
Comment thread go.mod
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/go-archive v0.2.0
github.com/moby/go-archive v0.3.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Developers building the examples module get a "go: updates to go.mod needed" error after merging. examples/go.mod uses replace github.com/depot/cli => ../, so it inherits this v0.3.0 requirement. But examples/go.mod:136 and examples/go.sum:437-438 still pin go-archive v0.2.0. Fix: run go mod tidy in examples/ in this PR, so examples/go.mod and examples/go.sum record v0.3.0 with its checksums.

Why this was flagged

examples/go.mod:228 has replace github.com/depot/cli => ../, so the root go.mod's requirements are part of the examples module graph. After this PR, the root requires github.com/moby/go-archive v0.3.0 (go.mod:177), and MVS selects v0.3.0 for examples. examples/go.mod:136 still lists github.com/moby/go-archive v0.2.0 // indirect, and examples/go.sum only has the v0.2.0 hashes. With the default -mod=readonly, go build/go test in examples/ stops with "go: updates to go.mod needed" or a missing go.sum entry error. On the base branch both modules agree on v0.2.0 and the examples build. No CI workflow under .github references examples, so CI would not catch this.

Verification: examples/go.mod:228 has replace github.com/depot/cli => ../, so the root go.mod's requirement list is read into the examples module graph. After this diff, root go.mod:177 requires github.com/moby/go-archive v0.3.0, so MVS selects v0.3.0. But examples/go.mod:136 still lists v0.2.0, and examples/go.sum:437-438 has only the v0.2.0 hashes. The drift is new with this PR.

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/moby/go-archive-0.3.0 branch 2 times, most recently from ff12df7 to 11f3318 Compare November 5, 2026 13:26
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/moby/go-archive-0.3.0 branch 2 times, most recently from 0c48090 to 8d51717 Compare November 8, 2026 22:50
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/moby/go-archive-0.3.0 branch from 8d51717 to 770fbdd Compare November 17, 2026 09:51

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review found no new issues

No new issues were found in this update; 1 finding from earlier reviews is still open above.

Still open from earlier reviews (1):

  • 🔴 go.mod:177 — Developers building the examples module get a "go: updates to go.mod needed" error after merging. examples/go.mod uses…

If you have decided not to act on one of these findings, resolve its thread (a reply alone leaves it open) and the next review stops counting it. To review this commit again now, use Re-run on its "Claude Code Review" check.

@ImLunaHey
ImLunaHey merged commit f7901d5 into main Nov 18, 2026
13 checks passed
@ImLunaHey
ImLunaHey deleted the dependabot/go_modules/github.com/moby/go-archive-0.3.0 branch November 18, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant