Skip to content

Bump calamine to 0.38.0 to clear the RustSec audit - #19420

Merged
fdncred merged 1 commit into
nushell:mainfrom
fdncred:fix_calamine_audit
Nov 3, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
fdncred:fix_calamine_audit

Conversation

@fdncred

@fdncred fdncred commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

The Security audit job fails on every PR that touches Cargo.toml or Cargo.lock (for example #19418), and on main's lockfile too. The advisory database now flags calamine 0.37.0 with RUSTSEC-2026-0436: a crafted file can make calamine's CFB/OLE2 reader panic or try to allocate several gigabytes. calamine 0.38.0 fixes it.

nushell can hit this bug. from xlsx runs the CFB reader on every input to check for password protection, so the upstream fixture cfb_dir_short_chunk_panic.xls (calamine PR #762) crashes the shell on main.

Crate Old New Advisory Pulled in by
calamine 0.37.0 0.38.0 RUSTSEC-2026-0436 nu-command (from xlsx, from ods)

User-facing changes (Release notes)

from ods keeps formula error text, from xlsx no longer crashes on a crafted file

  • from ods now returns a formula error cell's text (such as #DIV/0!) instead of an empty string, and keeps tabs and line breaks inside cell text.
  • Fixed from xlsx crashing nushell or running out of memory on a crafted file. It now reports Could not load XLSX file (RUSTSEC-2026-0436).

Additional notes

@fdncred
fdncred merged commit 9164b13 into nushell:main Nov 3, 2026
13 checks passed
@fdncred
fdncred deleted the fix_calamine_audit branch November 3, 2026 12:54
@github-actions github-actions Bot added this to the v0.117.0 milestone Nov 3, 2026
@fdncred fdncred added dependencies (Dependabot label) Pull requests that update a dependency file notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies (Dependabot label) Pull requests that update a dependency file notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant