Skip to content

fix(deps): move markkit builtin to 0.3.4 without email for RUSTSEC-2026-0628 - #3068

Merged
chaliy merged 2 commits into
mainfrom
claude/project-thread-86cc87
Dec 4, 2026
Merged

chaliy merged 2 commits into
mainfrom
claude/project-thread-86cc87

Conversation

@chaliy

@chaliy chaliy commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Михайло · project thread

What changed

The markkit builtin now builds on markkit/markkit-cli 0.3.4 (calamine 0.39) with its formats listed explicitly and without markkit's email feature. The <0.3.2 version cap and its Dependabot ignore entries are gone. The builtin no longer reads .eml input; HTML, PDF, DOCX, PPTX, spreadsheets, Markdown, ODT and EPUB are unchanged.

Why

Audit on main fails on RUSTSEC-2026-0628 (high, 7.5): crafted .xls/.xlsb/.ods files make calamine 0.38 panic or allocate without bound. The fix is only in calamine 0.39, reached through markkit 0.3.4, but bashkit capped markkit at 0.3.1 because markkit's email feature pulls mail-parser 1.x, which declares rust-version = 1.98, above the 1.96 consumer floor. Leaving email out keeps the floor and lets markkit track releases again.

markkit 0.3.4 is 15 hours old, so the lock was updated with the documented security override for the 3-day publish-age gate (CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow).

Before / After

Before (main, Audit):

Crate:     calamine
Version:   0.38.0
ID:        RUSTSEC-2026-0628
error: 1 vulnerability found!

After: Cargo.lock has calamine 0.39.0, markkit 0.3.4, and no mail-parser. A fresh Rust 1.96 consumer with every bashkit feature (check-msrv-consumer.py all manifest) resolves with no crate declaring a rust-version above 1.96. cargo vet --locked passes; markkit (15) and fetchkit (10) builtin integration tests pass; clippy with markkit,fetchkit is clean.

Risk

  • Low
  • Embedders feeding .eml files to the markkit builtin now get an unsupported-format error. Re-adding email needs a deliberate floor raise to Rust 1.98.

Checklist

  • Tests added or updated (test_markkit_never_enables_mail_parser replaces the cap-drift test)
  • Backward compatibility considered (consumer Rust floor kept at 1.96)

Generated by Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…26-0628

The Audit job on main fails on RUSTSEC-2026-0628 (calamine 0.38: crafted
.xls/.xlsb/.ods files panic or allocate without bound). calamine 0.39 ships
only through markkit 0.3.4, but bashkit capped markkit below 0.3.2 because
markkit's email feature pulls mail-parser 1.x, which needs Rust 1.98, above
the 1.96 consumer floor.

List markkit's formats explicitly instead of all_formats, leaving out email,
and drop the cap and its Dependabot ignore entries. The markkit builtin no
longer reads .eml input; every other format is unchanged. A fresh 1.96
all-features consumer resolves with no crate above 1.96. The dependabot
coverage test now guards that email and all_formats stay off and that
mail-parser stays out of Cargo.lock.

Pulled inside the 3-day publish-age window via the documented security
override (CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow).
@chaliy chaliy self-assigned this Dec 4, 2026

@bashkit-pr-reviewer bashkit-pr-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency fix looks correct; one question on the feature lists.

Comment thread crates/bashkit/Cargo.toml Resolved
@bashkit-pr-reviewer

bashkit-pr-reviewer Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Review summary (head ff5e0e4)

Verdict: Still good to merge — no blocking issues. The new push resolves the earlier P2 and adds one CI-only fix, both verified.

Earlier finding resolved: markkit-cli-feature-asymmetry — crates/bashkit/Cargo.toml now documents that markkit-cli has no html/email-body features and gates no code on them, so setting them on markkit with Cargo feature unification giving the CLI the same set is intentional. No further action.

New in this push: scripts/debian-oracle/run.sh lifts the 3-day publish-age gate (CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow) for the throwaway oracle-bench resolution only, with the workspace Cargo.lock still enforcing it. This matches the documented pattern in knowledge/operations/maintenance.md (line ~118) and is scoped to a read-only-runner probe working around yanked pin-project-lite releases — low risk, though unrelated to the markkit title and could have been a separate PR.

Re-verified (unchanged): markkit/markkit-cli 0.3.1 → 0.3.4 with explicit format lists (no email/all_formats), mail-parser absent from Cargo.lock, calamine 0.39.0 (RUSTSEC-2026-0628), consistent docs/knowledge/supply-chain/test updates.

Context read beyond the diff: crates/bashkit/Cargo.toml (lines 464-486), scripts/debian-oracle/run.sh (lines 45-60), knowledge/operations/maintenance.md cooldown section, Cargo.lock (markkit*, calamine, no mail-parser). No build/test run per project rules.

Every pin-project-lite release older than three days (0.2.9..0.2.18) is now
yanked, so the oracle's fresh resolution of bashkit's graph into the bench
lockfile fails under the repository's publish-age gate. Lift the gate for
that throwaway probe build only, as the msrv consumer job already does.

Also note in crates/bashkit/Cargo.toml why markkit-cli lists fewer
features than markkit.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit 73f907f Commit Preview URL

Branch Preview URL
Dec 04 2026, 02:02 AM

@chaliy
chaliy merged commit e4c350c into main Dec 4, 2026
116 checks passed
@chaliy
chaliy deleted the claude/project-thread-86cc87 branch December 4, 2026 02:43
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