Skip to content

fix(security): patch Wasmtime and minimatch advisories - #3077

Merged
chaliy merged 4 commits into
mainfrom
fix/wasmtime-advisories-20261204
Dec 5, 2026
Merged

chaliy merged 4 commits into
mainfrom
fix/wasmtime-advisories-20261204

Conversation

@chaliy

@chaliy chaliy commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Pin the CPython WASM host and Hyperlight example to Wasmtime 48.0.11, the patched line for the December Wasmtime and Cranelift advisories. Refresh the root, fuzz and Hyperlight lockfiles and the cargo-vet publisher snapshot. The .cwasm is rebuilt from the committed wasm guest during the build, so it matches the new host runtime. Raise the tooling-only minimatch floor to 11.0.10 in DeepSec and JavaScript test lockfiles after their audit gate found GHSA-3924-r96c-gp9w.

Why

Wasmtime 49.0.6 is affected by newly published RustSec advisories and has no patched 49.x release. The patched 50.x line would raise the consumer Rust floor from 1.96 to 1.97. Wasmtime 48.0.11 retains that floor and removes the findings. The existing chrono and chrono-tz unmaintained notices have no patched versions; their narrowly scoped exceptions are documented in both advisory gates and the threat model. minimatch 11.0.8/11.0.9 is affected by the new shared-cache advisory; 11.0.10 is patched.

Before / After

Before: all three Cargo lockfiles resolved Wasmtime 49.0.6, and DeepSec and JavaScript test lockfiles resolved vulnerable minimatch; the CI audit gate failed. After: all three Cargo lockfiles resolve 48.0.11, both npm lockfiles resolve minimatch 11.0.10, the root/fuzz/Hyperlight cargo-deny advisory scans pass, and both pnpm audit calls report no known vulnerabilities. Frozen npm lockfile checks pass. The locked cargo-vet audit passes after refreshing 33 publisher records against each release's crates.io trusted-publishing attestation; no audit exemption was added. The CPython feature compilation, all-feature Clippy, 139 CPython integration and security tests, 19 serialized failpoint tests, 300 script tests, documentation links, knowledge validation and workflow parity checks pass. The HTTP-enabled test slice passes 4,068 library and 2,761 integration tests, plus other test targets and doc tests, with four unrelated process-cleanup assertions skipped: this runner's PID 1 retains killed descendants as zombies, so those tests cannot observe ESRCH here. The same unfiltered suite is green on current main in GitHub CI. Exact-head CI will validate the full patch on the hosted runner.

Risk

Medium: a runtime-line change recompiles the host's precompiled CPython module and can change execution behavior. The targeted runtime and security suite covers guest loading, isolation, limits and HTTP bridge behavior. The older Wasmtime line is security patched; it is not an unpatched downgrade. The npm change only affects scanning and test tooling.

Checklist

  • Tests added or updated (existing runtime and security suites exercise the new pin; no new test duplicates the pin)
  • Backward compatibility considered (Rust 1.96 consumer floor retained)
  • Security threat model and advisory gates updated
  • All-feature lint and HTTP-enabled test slice pass (four local PID 1 assertions deferred to CI)
  • Exact-head CI and review comments resolved

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 5, 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 143cb2d Commit Preview URL

Branch Preview URL
Dec 05 2026, 01:36 AM

@chaliy chaliy changed the title fix(cpython): pin patched Wasmtime runtime line fix(security): patch Wasmtime and minimatch advisories Dec 5, 2026
@chaliy
chaliy marked this pull request as ready for review December 5, 2026 01:23

@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.

Advisory patch looks correct: exact =48.0.11 pin with threat-model rationale, all three lockfiles and the vet snapshot move together, minimatch goes to 11.0.10 in both JS workspaces, and the chrono suppressions are genuine (both crates are in the root graph with no patched version) and documented in deny.toml, audit-lockfiles.sh, and the threat-model table. Two minor consistency suggestions below, neither blocking.

Comment thread examples/hyperlight/host/Cargo.toml Outdated

[dependencies]
wasmtime = { version = "49.0.6", default-features = false, features = ["component-model", "cranelift", "runtime", "std"] }
wasmtime = { version = "48.0.11", default-features = false, features = ["component-model", "cranelift", "runtime", "std"] }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P2] Caret pin drifts from the "pinned exactly" policy: version = "48.0.11" permits a later cargo update to pull an unvetted 48.0.x into this workspace, while the root Cargo.toml (line 26) and the TM-PY-CPY-013 boundary it cites both require an exact pin (=48.0.11). The example is publish = false, so the blast radius is local, but since this PR's stated goal is pinning a patched runtime line, consider version = "=48.0.11" here too for consistency.

Comment thread deny.toml
Comment on lines +57 to +60
# Chrono and chrono-tz are classified unmaintained across every published
# version, with no patched upgrade. Keep date/TZ behavior while migrating
# to maintained replacements; remove these once neither is in the graph.
"RUSTSEC-2026-0543",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P2] The chrono/chrono-tz exceptions say "while migrating to maintained replacements" but name no tracking issue, unlike the adjacent rsa entry which anchors to TM-CRY-002. I verified both crates are genuinely in the root graph (Cargo.lock: chrono 0.4.45, chrono-tz 0.10.4) with no patched version available, so the suppression itself is justified — but without an issue link there is no forcing function for the "remove these once neither is in the graph" step. Consider adding the migration issue number to this comment (and the matching audit-lockfiles.sh / threat-model notes).

@bashkit-pr-reviewer

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

Copy link
Copy Markdown

Review summary (head 2e584af)

Verdict: The new push resolves both P2 findings from the prior review; no new issues found, no new review submitted.

Resolved since 3c3d758: (1) examples/hyperlight/host/Cargo.toml:17 now uses the exact pin (=48.0.11), matching the root workspace and the TM-PY-CPY-013 boundary; (2) the chrono/chrono-tz exceptions in deny.toml, scripts/audit-lockfiles.sh, and the threat-model table now carry an explicit recheck obligation ("recheck at each release via cargo-deny and the lockfile audit; remove when neither remains"), which answers the lingering-exception concern — the gates themselves are the forcing function.

What I checked on this push: refreshed checkout at 2e584af; confirmed the exact pin and the reworded exception comments in all three locations; re-verified no 49.0.6 remnants and minimatch at 11.0.10. The remaining delta to base is unchanged from the prior review (Wasmtime 48.0.11 pin, minimatch 11.0.10 floor, lockfile/vet refresh, knowledge updates), which I already found sound.

@chaliy
chaliy merged commit ba036b1 into main Dec 5, 2026
109 checks passed
@chaliy
chaliy deleted the fix/wasmtime-advisories-20261204 branch December 5, 2026 02:16
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