Skip to content

fix(deps): ignore zip advisories RUSTSEC-2026-0367 to 0369 - #1636

Merged
zach030 merged 1 commit into
mainfrom
fix/zip-audit-ignore
Oct 19, 2026
Merged

zach030 merged 1 commit into
mainfrom
fix/zip-audit-ignore

Conversation

@zach030

@zach030 zach030 commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Cargo Audit fails on main and every open PR since the RustSec database added three advisories against zip 0.6.6:

  • RUSTSEC-2026-0367: SUID/SGID bits preserved on extraction
  • RUSTSEC-2026-0368: ZipArchive::extract creates symlinks pointing outside the destination
  • RUSTSEC-2026-0369: Unix permissions applied through symlinks

This adds the three IDs to .cargo/audit.toml with a justification comment.

zip 0.6.6 enters only as a build-dependency of utoipa-swagger-ui 6.0.0 (via tycho-indexer). Its build script reads res/swagger-ui-5.3.1.zip, which ships inside the crate, and extracts it with its own loop (enclosed_name + File::create), not ZipArchive::extract. No untrusted archive is ever opened.

The fix is only in zip >= 9.0.0. The latest utoipa-swagger-ui (10.0.1) still requires zip ^8.6, so a dependency bump cannot clear these yet.

cargo audit reports 0 vulnerabilities locally with this change.

🤖 Generated with Claude Code

zip 0.6.6 is only a build-dependency of utoipa-swagger-ui 6.0.0, which
extracts the Swagger UI archive bundled in its own crate. The fix is in
zip >= 9.0.0, and the latest utoipa-swagger-ui still requires zip ^8.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@Troshchk Troshchk 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.

Thank you!

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Tycho Oct 19, 2026
@zach030
zach030 merged commit da4cd78 into main Oct 19, 2026
29 checks passed
@zach030
zach030 deleted the fix/zip-audit-ignore branch October 19, 2026 06:51
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Tycho Oct 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants