Skip to content

ci(audit): Ignore unreachable zip and chrono advisories - #3518

Merged
szokeasaurusrex merged 1 commit into
masterfrom
ci/audit-ignore-zip-chrono
Nov 24, 2026
Merged

szokeasaurusrex merged 1 commit into
masterfrom
ci/audit-ignore-zip-chrono

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds eight RustSec advisories to the audit.yml ignore list. None of them has a code path that sentry-cli can reach.

zip (RUSTSEC-2026-0545, -0546, -0547, -0548): sentry-cli and symbolic-debuginfo only read archives through ZipArchive::new/by_index/by_name. None of the following happens:

  • decrypting AES entries (zip 7.2.0 doesn't enable aes-crypto; 2.4.2 never gets a password)
  • calling extract()/extract_unwrapped_root_dir()
  • enabling legacy-zip
  • using ZipStreamReader/read_zipfile_from_stream

zip 7.2.0 can't move to a patched 9.x until symbolic-debuginfo ships a stable release that allows it (13.9.0 still requires ^7.2.0), so these have to stay ignored even if the direct zip dependency is bumped.

chrono family (RUSTSEC-2026-0542 humantime, -0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build): these are informational "unmaintained" advisories with no vulnerability and no patched version. Replacing chrono would mean rewriting every date/time call site, and anylog would still pull it in.

Closes #3507
Closes #3508
Closes #3509
Closes #3510
Closes #3511
Closes #3512
Closes #3513
Closes #3514
Closes #3515
Closes #3516

Fixes CLI-396
Fixes CLI-397
Fixes CLI-398
Fixes CLI-399
Fixes CLI-400
Fixes CLI-401
Fixes CLI-402
Fixes CLI-403
Fixes CLI-404
Fixes CLI-405

via @szokeasaurusrex.

--

View Session [Sentry]

@linear-code

linear-code Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

CLI-396

CLI-397

CLI-405

CLI-404

CLI-399

CLI-402

CLI-401

CLI-398

CLI-400

CLI-403

@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review November 23, 2026 13:35
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner November 23, 2026 13:35
szokeasaurusrex added a commit that referenced this pull request Nov 24, 2026
Bumps the direct `zip` dependency to 9.x, which fixes RUSTSEC-2026-0545
and RUSTSEC-2026-0548. sentry-cli never reaches either vulnerable path,
since it doesn't decrypt AES entries or use `ZipStreamReader`. No
release is needed.

zip 9 changed how entry names are returned:
- `ZipFile::name()` returns `ZipResult<Cow<str>>`.
- `ZipArchive::file_names()` yields `ZipResult<Cow<str>>`.

These only error when a non-UTF-8 name can't be decoded as CP437. Call
sites are updated as follows:
- `walk_difs_zip` and the macOS-only `extract_dsym_zip` and
`extract_app_name_from_ipa` pass the error up with `?`.
`extract_app_name_from_ipa` now returns an owned `String`.
- The macOS-only `is_ipa_file` treats an undecodable name as not
matching.
- Tests unwrap the result.

zip 7.2.0 stays in the tree through symbolic-debuginfo, because 13.9.0
still requires `^7.2.0`. The advisory IDs therefore still need the
`audit.yml` ignores from #3518.

<!-- junior-request-attribution:start -->
via @szokeasaurusrex.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!--
junior-conversation-id:agent-dispatch%3Adispatch_042bcfa6cb8bde4f93f9b32bbfee42c2
-->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_042bcfa6cb8bde4f93f9b32bbfee42c2)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_042bcfa6cb8bde4f93f9b32bbfee42c2/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Daniel Szoke <[email protected]>
@szokeasaurusrex
szokeasaurusrex merged commit 2ecf31d into master Nov 24, 2026
45 of 47 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the ci/audit-ignore-zip-chrono branch November 24, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment