Skip to content

fix: require rubyzip ~> 3.4 (CVE-2026-85396 path traversal) - #33

Merged
ronaldtse merged 1 commit into
mainfrom
fix/rubyzip-cve-2026-85396
Sep 17, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
fix/rubyzip-cve-2026-85396

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

Raises the rubyzip dependency from ~> 2.3 to ~> 3.4 to address the path traversal vulnerability affecting rubyzip prior to 3.4.0 (CVE-2026-85396).

  • unitsdb.gemspec: rubyzip constraint ~> 2.3 → ~> 3.4
  • lib/unitsdb/commands/release.rb: replace the Zip::File::CREATE constant (removed in rubyzip 3.x) with the create: true keyword argument

Requires lutaml-model 0.8.32+ (released 2026-09-17), which relaxed its own rubyzip constraint to ~> 3.4; earlier releases pin ~> 2.3 and cannot resolve alongside this change.

Fixes #32

Testing

  • Full suite: 852 examples, 0 failures (incl. ZIP archive creation via rubyzip 3.6.0)
  • rubocop: 112 files, no offenses

rubyzip prior to 3.4.0 is vulnerable to path traversal
(https://nvd.nist.gov/vuln/detail/cve-2026-85396).

- Raise the rubyzip dependency from ~> 2.3 to ~> 3.4
- Replace the removed Zip::File::CREATE constant with the
  rubyzip 3.x create: true keyword argument

Requires lutaml-model 0.8.32+, which relaxes its own rubyzip
constraint to ~> 3.4.

Fixes #32
@ronaldtse
ronaldtse merged commit b61b21b into main Sep 17, 2026
16 of 19 checks passed
@ronaldtse
ronaldtse deleted the fix/rubyzip-cve-2026-85396 branch September 18, 2026 06:48
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.

rubyzip version update?

1 participant