Skip to content

fix(deps): swap license_finder for rubyzip-3 fork (GHSA-47m2-wp7j-p9vc) - #379

Merged
artempartos merged 1 commit into
developfrom
artempartos/snaggletooth
Oct 1, 2026
Merged

artempartos merged 1 commit into
developfrom
artempartos/snaggletooth

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

Why

Dependabot alert #55 (high, GHSA-47m2-wp7j-p9vc): rubyzip < 3.4.0 has a path traversal in Zip::Entry#extract.

The only gem that pulls in rubyzip is license_finder (development group, used by make license-report-ruby). Upstream caps it at rubyzip >= 1, < 3 and has shipped nothing since 7.2.1 in May 2024. Four PRs that lift the cap (pivotal/LicenseFinder#1063, #1070, #1071, #1072) and issue #1066 are open with no maintainer response, so we cannot get to rubyzip 3 through upstream.

What

  • license_finder → license_finder-rubyzip3, pinned to exactly 7.2.1.1.
  • rubyzip 2.4.1 → 3.7.0. Nothing else in Gemfile.lock moves.
  • THIRD-PARTY-LICENSES.md: the regeneration steps used gem install license_finder, which would install upstream again and bring rubyzip 2 back. They now use bundle exec license_finder. The attribution table is a dated snapshot, so it is unchanged.

Is the fork safe

  • I downloaded both .gem files and diffed them. lib/ is identical to upstream 7.2.1. The only changes are in the gemspec: name, homepage/metadata and rubyzip < 4.
  • One person (asiniy) owns the gem on RubyGems. That is why it is pinned exactly: published versions are immutable, and the lockfile cannot pick up anything newer from them by itself.
  • license_finder only calls Zip::File.open, #read, #glob and Entry#get_input_stream, none of which changed in rubyzip 3. It never calls the vulnerable #extract.

Verification

  • Real bundle: in a throwaway container from the dev image, make license-report-ruby produces the full report (276 gems) with rubyzip 3.7.0.
  • Zip code path: LicenseFiles.find / NoticeFiles.find on a sample .jar find the MIT license with rubyzip 3.7.0. Upstream 7.2.1 with rubyzip 2.4.1 gives the same output.
  • rubocop Gemfile and brakeman: clean.
  • Full suite: left to CI.

Revert to license_finder once upstream releases with rubyzip 3 support.

🤖 Generated with Claude Code

license_finder is the only gem that pulls in rubyzip, and upstream caps it
below 3 with no release since May 2024 (pivotal/LicenseFinder#1063 and three
other PRs sit unmerged). That held us on rubyzip 2.4.1, which Dependabot
flags as high: path traversal in Zip::Entry#extract, fixed in 3.4.0.

license_finder-rubyzip3 7.2.1.1 is upstream 7.2.1 byte-for-byte apart from
the gemspec (name, homepage, rubyzip < 4). It is pinned exactly because a
single person publishes it. rubyzip moves to 3.7.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos
artempartos merged commit 71ffa5f into develop Oct 1, 2026
7 checks passed
artempartos pushed a commit that referenced this pull request Dec 2, 2026
Users did not know /docs existed: in the logged-in app it was linked
only from the step editor and three integration modals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
artempartos pushed a commit that referenced this pull request Dec 2, 2026
#969)

Users did not know /docs existed: in the logged-in app it was linked
only from the step editor and three integration modals.

Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
Co-authored-by: Aixle Flow <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
artempartos added a commit that referenced this pull request Dec 2, 2026
* origin/develop: (23 commits)
  ci(images): publish web, otlp-ingest and runner-relay for linux/arm64 (#983)
  fix(k8s): give a pod's image pull its own start budget (#979)
  build(dev): pull published agent images instead of building them (#980)
  fix(deps): bump coder-cli to v2.34.22 (CVE fixes) (#956)
  chore(agents): raise agent CLI pins for canary #943 (#975)
  docs(runners): record the §12.5 staging validation of the coder runner (row 18) (#978)
  build(dev): run local Temporal on the CLI dev server image (#954)
  fix(deps): websocket-driver 0.9.2 security batch, cross-spawn and tar re-resolve (#976)
  feat(web): link the docs portal from the app footer and sidebar (#379) (#969)
  feat(onboarding): Getting started page and product tour (#51) (#879)
  feat(dashboard): keep the table's sort in the URL (#974)
  fix(kiro): offer the models the account has today, not those of its last login (#973)
  feat(dashboard): keep the period and filters in the URL (#972)
  feat(company-settings): confirm worker count changes before saving (#971)
  feat(runners): the Coder runner in the UI: form, Environments section and docs (runners 17e, #315) (#963)
  docs(trackers): tech design for trackers chosen per session (#959)
  chore: remove the integrations backfill tooling left from #298 (#964)
  feat(runners): a coder runner created from the console (runners 17d, #309) (#960)
  chore(release): 1.23.0 (#961)
  feat(coder): Coder services for a second consumer, in the layers of runner-layers.md (runners 17b, #304) (#919)
  ...

# Conflicts:
#	CHANGELOG.md
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