Skip to content

fix(deps): ignore the unfixable chrono and docx-rs zip 8 advisories - #2618

Merged
wmfeht merged 1 commit into
h5-integrationfrom
fix/2616-deny-advisories
Nov 19, 2026
Merged

wmfeht merged 1 commit into
h5-integrationfrom
fix/2616-deny-advisories

Conversation

@wmfeht

@wmfeht wmfeht commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Description

Five new RustSec advisories turn every PR's Dependency and spelling policy check red. None of them has a fixed release that Strata can reach, so this PR adds them to the deny.toml ignore list with reasons. It changes no versions and no code.

  • RUSTSEC-2026-0545, 0546, 0547 and 0548 affect zip 8.6.0. It comes in only through docx-rs 0.4.22, the latest release, which requires zip ^8.6.0. docx-rs main is already on zip 9.0.5 but has not been released, and deny.toml allows no git sources. None of these advisories reaches the code docx-rs runs:
  • RUSTSEC-2026-0543: chrono is unmaintained, and no version is patched. It comes in only through fitparser, and fitparser 0.12.0 still depends on it. Removing it would mean replacing the FIT preview's parser.

Strata's own zip already resolves to 9.1.3, which has every fix (>=9.0.0, and >=9.0.5 for 0548). Strata extracts through its own loop over ZipArchive, not ZipArchive::extract or ZipStreamReader. The lockfile is unchanged.

Visual evidence

N/A: this changes only the dependency policy configuration, with no behaviour or interface change.

How to test

  1. On this branch, run cargo deny check.
  2. On h5-integration (or main), run cargo deny check advisories for comparison.

Expected result: On this branch, advisories ok, bans ok, licenses ok, sources ok. On the base branch, advisories FAILED with RUSTSEC-2026-0543 and RUSTSEC-2026-0545 to 0548.

Related issue

Closes #2616

RUSTSEC-2026-0543 (chrono unmaintained) has no patched version and comes
only through fitparser. RUSTSEC-2026-0545 to 0548 hit zip 8.6.0, which
only docx-rs 0.4.22, its latest release, still pins. Strata's own zip
already resolves to the patched 9.1.3.

Refs #2616
@wmfeht

wmfeht commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Validation at 36d23f1

The diff changes only deny.toml, which is not a build input, so the binaries tested are the same as on h5-integration at 9cc69fd.

Check Result
cargo deny check (cargo-deny 0.20.2) advisories ok, bans ok, licenses ok, sources ok. Warnings only: duplicate versions, and a yanked async-executor (already on the base, not changed here).
cargo deny check advisories on the base FAILED: RUSTSEC-2026-0543 and 0545 to 0548, as in #2616
./scripts/quality.sh all --jobs 4 fmt ok, clippy ok (-D warnings). Tests: 4809 passed, 1 failed across 4 lanes.
Failing test: strata-fs adapters::local_files::tests::stamps::a_check_sees_a_change_the_attribute_cache_hides Already on the base, unrelated: it races the process-global fake clock TEST_NOW (#2617). It passed 5 of 5 alone and failed 2 of 3 next to deletion::open_files and file_copy.
./scripts/qa.sh (full) 808 passed, 1 failed, 2 ignored
Failing run: new-folder-with-selection-groups/columns Known flake, #2162 (closed on strata-next with no fix on the main line). It failed 2 of 3 when rerun alone, the same focus timeout.
UnRAR-less build: CI's "Check and exercise the build without UnRAR" step, run locally in the pinned quality image Both dependency-graph checks passed. cargo check --no-default-features --features test-support ok. launch_mode 2, services::operations::tests 9, rar_disabled 2, archive_extraction_actions_follow_build_support 2: 15 passed, 0 failed

No QA scenario or test was changed. Both failures above are already on the base and are left for their own issues.

@github-actions github-actions Bot added the deps Dependency fixes and updates listed under Maintenance label Nov 19, 2026
@wmfeht

wmfeht commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Independent review (Parity Reviewer 1), head 36d23f1a3

Summary

The PR adds five ignores to deny.toml, each scoped to its advisory ID with a reason, in the style of the #2035 entries beside them. The justifications match the advisories' texts and what docx-rs 0.4.22 actually does with zip 8. Nothing else changes, and cargo deny check passes.

Checked against each advisory

The zip 8 advisories (RUSTSEC-2026-0545 to 0548):

Advisory What it affects Why it doesn't reach docx-rs
0545 AES entries read with a password, with the aes-crypto feature zip 8 is built without aes-crypto
0546 ZipArchive::extract and extract_unwrapped_root_dir (symlink escape) docx-rs never extracts
0547 the legacy Shrink, Reduce and Implode decoders, legacy-zip builds only zip 8 is built without legacy-zip
0548 ZipStreamReader (and read_zipfile_from_stream) using local-header names docx-rs never uses either

How I checked the right-hand column:

  • Features. docx-rs 0.4.22 declares zip with version = "8.6.0", features = ["deflate"] and default-features = false. The resolved features of [email protected] (cargo tree -e features -i [email protected] --all-features) are the deflate family only.
  • Call sites. Its sources open in-memory archives with ZipArchive<Cursor<&[u8]>> and by_name, and write with ZipWriter and CompressionMethod::Deflated. They have no extract, ZipStreamReader, read_zipfile_from_stream or *_decrypt call.
  • Reach. cargo tree -i [email protected] shows docx-rs 0.4.22 → strata-preview as the only path.

RUSTSEC-2026-0543:

  • It is informational = "unmaintained", and patched = []: no fix exists.
  • cargo tree -i chrono shows fitparser → strata-preview only. The lock has fitparser 0.11.0, and the PR notes 0.12.0 still depends on chrono.

Each entry's form: each ignore is { id, reason }, one line per ID, under a comment naming #2035 and #2616 and when to remove it. That matches the existing entries.

Checks (reviewer, host)

  • git diff upstream/h5-integration...HEAD: deny.toml only, 9 lines added and 1 removed (the old comment, folded into the new one).
  • mise exec -- cargo deny check (cargo-deny 0.20.2): advisories ok, bans ok, licenses ok, sources ok.
  • With h5-integration's deny.toml swapped in for the run (restored after): advisories FAILED, on exactly RUSTSEC-2026-0543 and 0545 to 0548.
  • git diff --check upstream/h5-integration...HEAD: clean. typos: clean.
  • The author's gate covers the rest. The lockfile and code are unchanged, and deny.toml is no build input.

Ready to merge immediately.

@wmfeht
wmfeht merged commit aa4cbae into h5-integration Nov 19, 2026
11 checks passed
l0gicgate added a commit that referenced this pull request Nov 24, 2026
* build(deps): update fitparser to 0.12 and refresh the lockfile

Update fitparser to 0.12.0 and every semver-compatible dependency.

- gio 0.22.11 returns `AppInfo::executable()` as an `Option`; the
  Nautilus check and the Open With search haystack now handle a missing
  executable.
- html5gum 0.9.2 emits processing instructions as tokens instead of a
  parse error. They still mark an HTML preview malformed, as before.
- zstd, zstd-safe and zstd-sys stay at 0.14.3, 8.2.0 and 2.1.2:
  zstd-sys 2.1.3 declares BSD-2-Clause, which deny.toml does not allow.
- THIRD_PARTY_LICENSES.md names kamadak-exif 0.6.2.

The chrono and zip 8 advisories have no release to update to; #2618
ignores them.

Refs #2616

* fix(deps): ignore the unfixable chrono and docx-rs zip 8 advisories

RUSTSEC-2026-0543 (chrono unmaintained) has no patched version and comes
only through fitparser. RUSTSEC-2026-0545 to 0548 hit zip 8.6.0, which
only docx-rs 0.4.22, its latest release, still pins. Strata's own zip
already resolves to the patched 9.1.3.

Refs #2616

(cherry picked from commit 36d23f1)

* build(deps): refresh the lockfile to the latest compatible releases

Holds zip at 9.7.3: 9.8 needs zstd-sys 2.1.3, whose BSD-2-Clause
component deny.toml does not allow.

Refs #2616

---------

Co-authored-by: William Feht <[email protected]>
@l0gicgate
l0gicgate deleted the fix/2616-deny-advisories branch November 24, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Dependency fixes and updates listed under Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant