Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion crates/bashkit-monty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ monty-macros = { version = "=1.5.0" }
num-bigint = { version = "0.4", features = ["serde"] }
num-integer = { version = "0.1" }
num-traits = { version = "0.2" }
postcard = { version = "1.1", features = ["alloc"] }
# bashkit fork: upstream leaves postcard's default features on, and
# `default = ["heapless-cas"]` is what pulls `heapless` 0.7 (and its
# `atomic-polyfill`) into the graph. Nine unsoundness advisories landed
# against heapless 0.7.17 on 2026-11-18 (RUSTSEC-2026-0574 through 0582) and
# postcard 1.1.3, its newest release, still requires `heapless ^0.7`, so no
# bump reaches the patched 0.9.4. Only `to_allocvec`, `from_bytes` and
# `to_slice` are used here, all of which need `alloc` alone. Drop the marker
# when upstream Monty turns postcard's default features off, or postcard
# ships a release built on heapless >= 0.9.4.
postcard = { version = "1.1", default-features = false, features = ["alloc"] }
ruff_python_ast = { version = "0.0.14" }
ruff_python_codegen = { version = "0.0.14" }
ruff_python_parser = { version = "0.0.14" }
Expand Down
2 changes: 1 addition & 1 deletion crates/bashkit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ oxc_parser = { version = "0.117.0", optional = true }
oxc_ast = { version = "0.117.0", optional = true }
oxc_allocator = { version = "0.117.0", optional = true }
oxc_span = { version = "0.117.0", optional = true }
postcard = { version = "1.1.3", features = ["alloc"], optional = true }
postcard = { version = "1.1.3", default-features = false, features = ["alloc"], optional = true }
num-bigint = { version = "0.4.6", default-features = false, optional = true }
self_cell = { version = "1.2.0", optional = true }

Expand Down
103 changes: 35 additions & 68 deletions crates/bashkit/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/bashkit/tests/integration/byte_stream_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ async fn iconv_code_pages_match_real_iconv() {
}

#[tokio::test]
#[cfg_attr(not(unix), ignore = "compares against host Unix bash/tools")]
async fn byte_tools_match_real_bash_on_non_utf8_input() {
// tee, split and cut pass bytes through; text tools would print U+FFFD.
let setup = "cd \"$(mktemp -d)\" && printf 'K\\366ln,\\377\\376\\000z\\nb,K\\303\\266ln\\200\\r\\n' > in.bin && ";
Expand Down
3 changes: 0 additions & 3 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ ignore = [
# pre-release versions. Matching resumes the moment `rsa` ships a stable
# release, so dropping the entry now would silently un-accept TM-CRY-002.
"RUSTSEC-2023-0071",
# atomic-polyfill: transitive via monty -> postcard -> heapless
# Unmaintained but no security vulnerability; upstream dep we can't control
"RUSTSEC-2023-0089",
]

[bans]
Expand Down
18 changes: 14 additions & 4 deletions knowledge/operations/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ What the 1.4.0 -> 1.5.0 re-sync (the first one) took, beyond that list:

### A fork dependency may be marked ahead of upstream

A dependency's *version* may diverge when the fork's `Cargo.toml` line carries
a `bashkit fork: <why>` marker, in the comment block directly above it or at
the end of the line. What a marker does **not** cover:
A dependency's *version* or its *feature selection* (including
`default-features`) may diverge when the fork's `Cargo.toml` line carries a
`bashkit fork: <why>` marker, in the comment block directly above it or at the
end of the line. The check compares the whole dependency spec, so either kind
of drift is markable. What a marker does **not** cover:

- **Adding or dropping** a dependency. Re-sync cannot reconcile a crate
upstream does not have.
Expand Down Expand Up @@ -192,7 +194,15 @@ every such bump unmergeable: #2860 (fancy-regex 0.17 -> 0.20, getrandom
0.3 -> 0.4) is the shape, and it would have come back every week. Holding the
fork at upstream's version instead put two majors of fancy-regex in the graph.

`getrandom` and `jiter` are marked today. Taking a shared bump therefore
`postcard` is marked for a different reason: not a shared-crate bump but a
security one. Upstream Monty leaves its default features on, and postcard's
`default = ["heapless-cas"]` exists only to pull in `heapless` 0.7, which
collected nine unsoundness advisories on 2026-11-18 while postcard's newest
release still required `heapless ^0.7`. Turning the default features off drops
the unsound code out of the build instead of suppressing its advisories, and
costs nothing here because only `alloc`-level postcard APIs are used.

`getrandom`, `jiter` and `postcard` are marked today. Taking a shared bump therefore
means moving the fork line too, marking it, and re-applying whatever source
adaptation the new major needs. `fancy-regex` was marked until the 1.5.0
re-sync: upstream Monty moved to 0.20 itself, so the fork no longer leads it
Expand Down
9 changes: 8 additions & 1 deletion knowledge/security/threat-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,6 @@ checks.
| Advisory | Crate | Why suppressed | Remove when |
|----------|-------|----------------|-------------|
| RUSTSEC-2023-0071 | `rsa` | Marvin timing sidechannel (TM-CRY-002). No patched version exists; reachable only via the opt-in `ssh` feature | `rsa` ships a constant-time release |
| RUSTSEC-2023-0089 | `atomic-polyfill` | Unmaintained, no known vulnerability; transitive via `monty` → `postcard` → `heapless` (pinned at 0.7, which still requires it) | Upstream drops the dependency |
| GHSA-fc5q-39xc-vjpf | `picomatch` (npm) | ReDoS via a single repeated extglob branch (`+(*)`). The advisory covers `<= 4.0.7`, picomatch's whole release history, and lists no patched version. Build tooling only (`ava`, `@napi-rs/cli`, `vite`, `tinyglobby`, `astro`); every glob comes from repo config, not tenant input, and no published package resolves it | picomatch ships a release above 4.0.7 that patches it |

A suppression that stops matching is not evidence that it can be dropped.
Expand All @@ -1906,6 +1905,14 @@ matching resumes as soon as `rsa` ships a stable release. Before removing any
entry above, verify the advisory's own patched release, dependency removal, or
explicit upstream withdrawal rather than the scanner's silence.

Retired: RUSTSEC-2023-0089 (`atomic-polyfill`), whose removal condition was
upstream dropping the dependency. `postcard` gates `heapless` behind its
`heapless-cas` default feature, and `heapless` 0.7 is what pulled in
`atomic-polyfill`, so declaring `postcard` with `default-features = false`
drops both from the graph. The crate is now absent from every discovered
lockfile, which is dependency removal rather than scanner silence, so the
entry was deleted instead of kept.

Retired: [GHSA-vfj7-8cjw-p6xm](https://github.com/advisories/GHSA-vfj7-8cjw-p6xm)
(`braces`, npm), withdrawn by GitHub on 2026-10-23 at 12:53:02 UTC because it
was not a practically exploitable vulnerability. The AVA dev-only chain still
Expand Down
Loading