[PR #3832] [MERGED] Update zip to 9.1.3 #5240

Closed
opened 2026-11-03 05:11:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3832
Author: @rdbtCVS
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/update-zip-security


📝 Commits (7)

  • 2b46e41 Update zip to 9.1.3
  • b804e8a Merge remote-tracking branch 'origin/main' into fix/update-zip-security
  • a0f42c8 One rule for zip entry names that can't be decoded
  • 17e6f6e Merge remote-tracking branch 'origin/main' into fix/update-zip-security
  • 0faccb5 Pack overlay test: break the zip where zip 9 still refuses to open it
  • eeede72 Merge remote-tracking branch 'origin/main' into fix/update-zip-security
  • 368eea9 Pack upgrade: refuse entries by their stored name

📊 Changes

35 files changed (+256 additions, -159 deletions)

View changed files

📝 Cargo.lock (+14 -26)
📝 crates/horizon-client-render/Cargo.toml (+1 -1)
📝 crates/horizon-client-render/src/packs/cache.rs (+4 -3)
📝 crates/horizon-client-render/src/zip.rs (+2 -2)
📝 crates/horizon-client/Cargo.toml (+1 -1)
📝 crates/horizon-mod-registry/Cargo.lock (+106 -49)
📝 crates/horizon-mods/Cargo.toml (+1 -1)
📝 crates/horizon-mods/src/content.rs (+1 -1)
📝 crates/horizon-mods/src/index.rs (+2 -1)
📝 crates/horizon-mods/src/index/native.rs (+1 -1)
📝 crates/horizon-mods/src/modpack.rs (+1 -1)
📝 crates/horizon-port-pack/Cargo.toml (+1 -1)
📝 crates/horizon-port-pack/src/carry.rs (+8 -5)
📝 crates/horizon-port-pack/src/check.rs (+5 -1)
📝 crates/horizon-port-pack/src/import.rs (+7 -4)
📝 crates/horizon-port-pack/src/jar.rs (+5 -1)
📝 crates/horizon-port-pack/src/processors.rs (+3 -1)
📝 crates/horizon-port-pack/src/resourcepacks.rs (+1 -1)
📝 crates/horizon-port-pack/src/upgrade/mod.rs (+8 -6)
📝 crates/horizon-port-pack/src/worldgen.rs (+9 -3)

...and 15 more files

📄 Description

🤖 Opened by rdbtCVS's AI agent (Codex, gpt-6.1-terra), not by rdbtCVS personally.

What and why

Update zip from 2.x to 9.1.3 across the game, launcher and mod registry lockfiles, and adapt archive readers to its fallible entry-name API with one rule: a reader that can return an error returns one when an entry name can't be decoded; best-effort port-pack scans that already skip unreadable entries skip it too. This picks up fixes for zip extraction vulnerabilities, including RUSTSEC-2026-0367 and RUSTSEC-2026-0368.

Vanilla reference

None (dependency maintenance).

Self-check

Merged main at ed5565713 (no rebase). Two fixes that zip 9 needed on code main added since: the pack-upgrade escape check now looks at the stored entry name (zip 9's enclosed_name turns ../x into x), and the pack-overlay cache test breaks its archive in a way zip 9 still refuses to open.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at ed5565713, 4 min 51 s)

Check Result
Scope ⚠️ 35 files, +256 −159; mixes game, launcher
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ✅ 495 passed (1 min 14 s)
rustfmt ✅ (15 s)
clippy ✅ (4 s)
tests: workspace ✅ 3261 passed (1 min 46 s)
doc tests ✅ 0 passed (18 s)
content root tests ✅ 7 passed (3 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (3 s)
launcher clippy ✅ (33 s)
launcher tests ✅ 305 passed (35 s)
Parity ➖ 359 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 347 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Codex


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3832 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/update-zip-security` --- ### 📝 Commits (7) - [`2b46e41`](https://github.com/horizon-rust/horizon/commit/2b46e411f5ee25b112c0d0b8534bc8efeccc128a) Update zip to 9.1.3 - [`b804e8a`](https://github.com/horizon-rust/horizon/commit/b804e8a2902c5dd9970c775d5cb40dd328d79443) Merge remote-tracking branch 'origin/main' into fix/update-zip-security - [`a0f42c8`](https://github.com/horizon-rust/horizon/commit/a0f42c81e0469ce8c68458c44ae632d0c5aa227f) One rule for zip entry names that can't be decoded - [`17e6f6e`](https://github.com/horizon-rust/horizon/commit/17e6f6e8fa780cb74c87f32d582bb0f57348a076) Merge remote-tracking branch 'origin/main' into fix/update-zip-security - [`0faccb5`](https://github.com/horizon-rust/horizon/commit/0faccb5be85a3ab236307df0f9e2ad782ff5665d) Pack overlay test: break the zip where zip 9 still refuses to open it - [`eeede72`](https://github.com/horizon-rust/horizon/commit/eeede72cf88e70ea04b3d46dc3a49177f61cd53b) Merge remote-tracking branch 'origin/main' into fix/update-zip-security - [`368eea9`](https://github.com/horizon-rust/horizon/commit/368eea9f74fced001424b45f3a7f48126a4882b0) Pack upgrade: refuse entries by their stored name ### 📊 Changes **35 files changed** (+256 additions, -159 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+14 -26) 📝 `crates/horizon-client-render/Cargo.toml` (+1 -1) 📝 `crates/horizon-client-render/src/packs/cache.rs` (+4 -3) 📝 `crates/horizon-client-render/src/zip.rs` (+2 -2) 📝 `crates/horizon-client/Cargo.toml` (+1 -1) 📝 `crates/horizon-mod-registry/Cargo.lock` (+106 -49) 📝 `crates/horizon-mods/Cargo.toml` (+1 -1) 📝 `crates/horizon-mods/src/content.rs` (+1 -1) 📝 `crates/horizon-mods/src/index.rs` (+2 -1) 📝 `crates/horizon-mods/src/index/native.rs` (+1 -1) 📝 `crates/horizon-mods/src/modpack.rs` (+1 -1) 📝 `crates/horizon-port-pack/Cargo.toml` (+1 -1) 📝 `crates/horizon-port-pack/src/carry.rs` (+8 -5) 📝 `crates/horizon-port-pack/src/check.rs` (+5 -1) 📝 `crates/horizon-port-pack/src/import.rs` (+7 -4) 📝 `crates/horizon-port-pack/src/jar.rs` (+5 -1) 📝 `crates/horizon-port-pack/src/processors.rs` (+3 -1) 📝 `crates/horizon-port-pack/src/resourcepacks.rs` (+1 -1) 📝 `crates/horizon-port-pack/src/upgrade/mod.rs` (+8 -6) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+9 -3) _...and 15 more files_ </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Codex, gpt-6.1-terra), not by rdbtCVS personally. ## What and why Update zip from 2.x to 9.1.3 across the game, launcher and mod registry lockfiles, and adapt archive readers to its fallible entry-name API with one rule: a reader that can return an error returns one when an entry name can't be decoded; best-effort port-pack scans that already skip unreadable entries skip it too. This picks up fixes for zip extraction vulnerabilities, including [RUSTSEC-2026-0367](https://rustsec.org/advisories/RUSTSEC-2026-0367) and [RUSTSEC-2026-0368](https://rustsec.org/advisories/RUSTSEC-2026-0368). ## Vanilla reference None (dependency maintenance). ## Self-check Merged main at ed5565713 (no rebase). Two fixes that zip 9 needed on code main added since: the pack-upgrade escape check now looks at the stored entry name (zip 9's `enclosed_name` turns `../x` into `x`), and the pack-overlay cache test breaks its archive in a way zip 9 still refuses to open. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at ed5565713, 4 min 51 s) | Check | Result | | --- | --- | | Scope | ⚠️ 35 files, +256 −159; mixes game, launcher | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ✅ 495 passed (1 min 14 s) | | rustfmt | ✅ (15 s) | | clippy | ✅ (4 s) | | tests: workspace | ✅ 3261 passed (1 min 46 s) | | doc tests | ✅ 0 passed (18 s) | | content root tests | ✅ 7 passed (3 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (3 s) | | launcher clippy | ✅ (33 s) | | launcher tests | ✅ 305 passed (35 s) | | Parity | ➖ 359 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 347 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5240
No description provided.