Skip to content

fix(deps): bump pyo3 0.26 → 0.29 (RUSTSEC-2026-0176/0177) + arrow 57 → 59 - #180

Closed
eric-wang-1990 wants to merge 2 commits into
mainfrom
deps/bump-pyo3-0.29
Closed

eric-wang-1990 wants to merge 2 commits into
mainfrom
deps/bump-pyo3-0.29

Conversation

@eric-wang-1990

Copy link
Copy Markdown
Collaborator

Why

The Security Scan (OSV-Scanner) is failing on every PR against two advisories in pyo3@0.26:

Advisory Severity Issue
RUSTSEC-2026-0176 / GHSA-36hh-v3qg-5jq4 8.7 Out-of-bounds read in PyList/PyTuple nth/nth_back (unchecked index arithmetic)
RUSTSEC-2026-0177 / GHSA-chgr-c6px-7xpp 6.3 Missing Sync bound on PyCFunction::new_closure closures

Both are patched in pyo3 0.29.0. (This repo doesn't call the affected APIs directly — the exposure is transitive through pyo3's iterators — but OSV flags the dependency regardless, so the scan stays red for all PRs until pyo3 moves.)

What

  • pyo3 0.26 → 0.29 in pyo3/Cargo.toml.
  • arrow-* 57 → 59 across all three workspaces (root kernel, pyo3/, napi/). This is forced, not optional: pyo3 0.29 requires arrow-pyarrow 59 (arrow-pyarrow 57 hard-pins pyo3 ^0.26), and the pyo3/napi crates share RecordBatch/Schema types with the kernel — a 57/59 split surfaces as mismatched types: multiple versions of arrow_schema at the napi↔kernel boundary.
  • Lockfiles regenerated for all three workspaces.

No source changes — pure dependency version bumps; the arrow 57→59 API is source-compatible for everything this repo uses.

Verification (locally, through the JFrog proxy)

  • root kernel: cargo check --workspace --tests, cargo test (687 pass), cargo fmt --check, cargo clippy --all-targets -- -D warnings — all clean.
  • pyo3: cargo check --tests (0.29 API type-checks against arrow 59), fmt, clippy clean. (cargo test is skipped locally — the extension-module feature intentionally doesn't link libpython off-interpreter; CI builds the abi3 wheel via maturin.)
  • napi: cargo test (70 pass), fmt, clippy clean.
  • pyo3 now resolves to 0.29.0, outside the advisories' >=0.24,<0.29 affected range — a real fix, not an osv-scanner.toml suppression.

Separate from the bot-onboarding PR (#179) by design — this is a repo-wide dependency change that predates and outlives that work. Unblocks the Security Scan for #179 and every other open PR.

This pull request and its description were written by Isaac.

…→ 59

The Security Scan (OSV-Scanner) fails on every PR against two advisories in
pyo3 0.26: RUSTSEC-2026-0176 / GHSA-36hh-v3qg-5jq4 (out-of-bounds read in
PyList/PyTuple nth/nth_back, 8.7) and RUSTSEC-2026-0177 / GHSA-chgr-c6px-7xpp
(missing Sync bound on new_closure, 6.3). Both are patched in pyo3 0.29.0.

pyo3 0.29 requires arrow-pyarrow 59 (arrow-pyarrow 57 hard-pins pyo3 ^0.26), and
the pyo3/napi crates share RecordBatch/Schema types with the kernel — so the
arrow-* pins move 57 → 59 in lockstep across all three workspaces (root, pyo3,
napi). A 57/59 split otherwise surfaces as `mismatched types: multiple versions
of arrow_schema` at the napi↔kernel boundary.

No source changes — pure dependency version bumps. Verified locally through the
JFrog proxy:
  - root kernel: cargo check --workspace --tests, cargo test (687 pass), fmt, clippy -D warnings
  - pyo3:        cargo check --tests (0.29 API type-checks against arrow 59), fmt, clippy
                 (cargo test skipped locally — extension-module doesn't link libpython
                  off-interpreter; CI builds the abi3 wheel via maturin)
  - napi:        cargo test (70 pass), fmt, clippy -D warnings
pyo3 now resolves to 0.29.0 (outside the advisories' >=0.24,<0.29 range); this is
a real fix, not an osv-scanner.toml suppression.

Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Co-authored-by: Isaac
The napi-workspace step of license-check.yml runs
`cargo deny --manifest-path ... check --config ...`, which fails on current
cargo-deny with `error: unexpected argument '--config' found`. cargo-deny 0.20
(EmbarkStudios/cargo-deny#881) moved `--config` from a check-subcommand flag to a
global/root flag, so it must come BEFORE `check`. Reorder to
`cargo deny --manifest-path ... --config ... check` and update the stale comment.

Pre-existing failure independent of the pyo3 bump (it fails on every open PR,
including the dependabot ones, since cargo-deny auto-updates via
taiki-e/install-action); folded in here so #180 goes fully green. The
root-workspace `cargo deny check` step was already correct (no --config) and is
unaffected.

Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Co-authored-by: Isaac
@eric-wang-1990

Copy link
Copy Markdown
Collaborator Author

Closing as superseded — every change here is already on main:

So the RUSTSEC-2026-0176/0177 advisories are resolved on main and the Security Scan passes there (and on #179, which merged main in). Nothing unique remains in this PR — closing to keep the queue clean.

This branch was previously deployed

1 inactive deployment
azure-prod — ed46dfa7 Deployed Jul 20, 2026 by eric-wang-1990 via PyO3 build + test (Python 3.13) #155
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