Skip to content

chore(deps): security update – cargo deps, zip 9.0.5 + audit fixes - #18

Merged
0xtlt merged 2 commits into
mainfrom
chore/security-deps-2026-10
Oct 22, 2026
Merged

0xtlt merged 2 commits into
mainfrom
chore/security-deps-2026-10

Conversation

@0xtlt

@0xtlt 0xtlt commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Cargo deps refreshed: cargo audit goes from 11 → 2 vulnerabilities, and the full local gate is green.

⚠️ Do not merge or deploy while the company-wide deploy freeze is active.

🔧 Runtime (before → after)

  • Rust: no pin in the repo (no rust-toolchain.toml, mise.toml, .tool-versions or Dockerfile). CI uses rolling rustup update stable, so nothing changed. Verified locally on current stable 1.99.1 (2026-10-13; rustup check: up to date).
  • Node / Bun / PHP / Docker base images: not used by this repo.
  • MSRV: no rust-version declared, and the effective floor is unchanged. It is already 1.92 via typst 0.15.1; the new as_chunks call needs 1.88.

📦 Libs bumped: 126 crates (+8 added, −2 removed)

  • zip 8.6.0 → 9.0.5 (major, non-breaking for md2pdf: write-only, explicit Deflate; archives checked for CRC, method, timestamps and modes)
  • clap 4.6.4 → 4.6.7 · globset 0.4.19 → 0.4.20 · thiserror 2.0.19 → 2.0.21 · tokio 1.53.1 → 1.54.0
  • rustls 0.23.43 → 0.23.46 · rustls-webpki 0.103.13 → 0.103.16 · webpki-roots 1.0.9 → 1.0.10
  • Code: one 3-line change in src/markdown.rs. chunks_exact(2) becomes as_chunks::<2>() for the new Clippy 1.99 lint chunks_exact_to_as_chunks. Behaviour is identical: a trailing odd value is dropped in both versions.

🛡️ Vulnerabilities

Fixed (9):

  • RUSTSEC-2026-0367 / 0368 / 0369 (zip)
  • RUSTSEC-2026-0346 / 0285 / 0348 / 0349 (rustls)
  • RUSTSEC-2026-0382 (rustls-webpki)
  • RUSTSEC-2026-0381 (webpki-roots)
  • The yanked chacha20 warning is also gone.

Remaining (2), blocked upstream:

  • RUSTSEC-2026-0195 and RUSTSEC-2026-0194 in quick-xml 0.38.4. Path: citationberg 0.7.0 ← hayagriva 0.10.1 ← typst-library 0.15.1.
  • The fix needs quick-xml ≥ 0.41, but citationberg (latest 0.7.0) requires ^0.38.1.
  • No reachable path found through normal CLI Markdown conversion: Markdown is escaped into Typst strings, and the bundled CSL styles load from CBOR, not XML.
  • The public render_to_bytes API accepts arbitrary Typst, which could use a custom CSL bibliography, so the advisory still applies to the dependency.

Unmaintained warnings (6, all transitive via typst / syntect): bincode, paste, rustybuzz, ttf-parser, unsafe-libyaml, yaml-rust.

⏭️ Majors deferred (follow-ups)

  • ureq 2.12.1 → 3.4.2: API and TLS config changes
  • lopdf 0.44.0 → 0.46.0
  • typst-as-lib 0.16.0 → 0.17.0: same typst ^0.15 requirement, API changes not assessed yet
  • tikv-jemallocator 0.6.1 → 0.7.0
  • typst stack: waiting for an upstream release that moves to quick-xml ≥ 0.41 (fixes the 2 remaining advisories)

✅ Local verification (rustc 1.99.1, macOS arm64)

  • cargo update --dry-run: 0 packages left to lock
  • cargo fmt --check: ✅
  • cargo clippy --all-targets --locked -- -D warnings: ✅
  • cargo test --locked: ✅ 55 unit + 26 CLI tests passed. The network/HTTPS image tests ran and passed.
  • RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --locked: ✅
  • cargo build --release --locked: ✅
  • cargo run --release --locked -- example.md --output /tmp/md2pdf-example.pdf: ✅ 2-page PDF
  • cargo audit: 2 vulnerabilities (quick-xml, see above), 6 warnings
  • GitHub CI is ignored (billing issue on 0xtlt repos), so local results are the reference.

🔎 Sol review verdict

APPROVE (round 1), GPT-6.1-Sol (reasoning: medium), with independent re-runs of the gate, audit and zip compatibility checks. Its two wording fixes (typst-as-lib rationale, quick-xml reachability scope) are applied in this description.

0xtlt added 2 commits October 21, 2026 15:13
Satisfies clippy::chunks_exact_to_as_chunks on Rust 1.99.
Refresh Cargo.lock (semver-compatible bumps) and move zip 8.6 -> 9.0.5, which fixes RUSTSEC-2026-0367/0368/0369. Also resolves RUSTSEC-2026-0346/0285/0348/0349 (rustls), RUSTSEC-2026-0382 (rustls-webpki) and RUSTSEC-2026-0381 (webpki-roots).
@0xtlt
0xtlt merged commit 2737f08 into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant