Repository navigation
fix(deps): ignore the unfixable chrono and docx-rs zip 8 advisories - #2618
Conversation
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
Validation at 36d23f1The diff changes only
No QA scenario or test was changed. Both failures above are already on the base and are left for their own issues. |
Independent review (Parity Reviewer 1), head
|
| 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-rs0.4.22 declares zip withversion = "8.6.0",features = ["deflate"]anddefault-features = false. The resolved features of[email protected](cargo tree -e features -i [email protected] --all-features) are thedeflatefamily only. - Call sites. Its sources open in-memory archives with
ZipArchive<Cursor<&[u8]>>andby_name, and write withZipWriterandCompressionMethod::Deflated. They have noextract,ZipStreamReader,read_zipfile_from_streamor*_decryptcall. - Reach.
cargo tree -i [email protected]showsdocx-rs0.4.22 →strata-previewas the only path.
RUSTSEC-2026-0543:
- It is
informational = "unmaintained", andpatched = []: no fix exists. cargo tree -i chronoshowsfitparser→strata-previewonly. The lock hasfitparser0.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.tomlonly, 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'sdeny.tomlswapped 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.tomlis no build input.
Ready to merge immediately.
* 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]>
Description
Five new RustSec advisories turn every PR's
Dependency and spelling policycheck red. None of them has a fixed release that Strata can reach, so this PR adds them to thedeny.tomlignore list with reasons. It changes no versions and no code.zip8.6.0. It comes in only throughdocx-rs0.4.22, the latest release, which requireszip ^8.6.0.docx-rsmain is already on zip 9.0.5 but has not been released, anddeny.tomlallows no git sources. None of these advisories reaches the codedocx-rsruns:docx-rsreads in-memory archives throughZipArchive::newandby_name.extract(0546) orZipStreamReader(0548).deflateonly, withoutaes-crypto(0545) orlegacy-zip(0547).chronois unmaintained, and no version is patched. It comes in only throughfitparser, andfitparser0.12.0 still depends on it. Removing it would mean replacing the FIT preview's parser.Strata's own
zipalready resolves to 9.1.3, which has every fix (>=9.0.0, and >=9.0.5 for 0548). Strata extracts through its own loop overZipArchive, notZipArchive::extractorZipStreamReader. The lockfile is unchanged.Visual evidence
N/A: this changes only the dependency policy configuration, with no behaviour or interface change.
How to test
cargo deny check.h5-integration(ormain), runcargo deny check advisoriesfor comparison.Expected result: On this branch,
advisories ok, bans ok, licenses ok, sources ok. On the base branch,advisories FAILEDwith RUSTSEC-2026-0543 and RUSTSEC-2026-0545 to 0548.Related issue
Closes #2616