Skip to content

fix: bump pyo3 to 0.29 and run cargo update for RUSTSEC-2026-0176/0177#284

Merged
seant-aws merged 1 commit into
OpenJobDescription:mainlinefrom
seant-aws:fix/bump-pyo3
Jun 18, 2026
Merged

fix: bump pyo3 to 0.29 and run cargo update for RUSTSEC-2026-0176/0177#284
seant-aws merged 1 commit into
OpenJobDescription:mainlinefrom
seant-aws:fix/bump-pyo3

Conversation

@seant-aws

@seant-aws seant-aws commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

What was the problem/requirement? (What/Why)

cargo deny check advisories fails due to two security vulnerabilities in pyo3 0.28.3:

  • RUSTSEC-2026-0176: Out-of-bounds read in nth/nth_back for PyList and PyTuple iterators
  • RUSTSEC-2026-0177: Missing Sync bound on PyCFunction::new_closure closures

This blocks the release pipeline.

What was the solution? (How)

Bumped pyo3 from 0.28 to 0.29 in rust-bindings/Cargo.toml and ran cargo update to regenerate Cargo.lock. Regenerated THIRD-PARTY-LICENSES.txt to reflect the updated dependency tree.

What is the impact of this change?

No functional changes. pyo3 0.29 is API-compatible for our usage (confirmed by clean cargo build). Transitive dependencies received minor/patch bumps via cargo update.

target-lexicon was incorrectly included in the previous version of this file — it's a build-only dependency (filtered by ignore-build-dependencies = true in about.toml) and doesn't ship in the distributed wheel.

How was this change tested?

  • cargo build passes in rust-bindings/
  • Unit tests (CI will run rust_quality.yml and code_quality.yml)

Was this change documented?

N/A — dependency version bump only.

Is this a breaking change?

No.

Does this change impact security?

Yes — it resolves two security advisories (RUSTSEC-2026-0176, RUSTSEC-2026-0177). No new threat surface introduced.

@seant-aws seant-aws changed the title fix: bump pyo3 to 0.29 for RUSTSEC-2026-0176 and RUSTSEC-2026-0177 fix: bump pyo3 to 0.29 and run cargo update for RUSTSEC-2026-0176/0177 Jun 17, 2026
Bumped pyo3 from 0.28 to 0.29 in rust-bindings/Cargo.toml to resolve two security advisories (RUSTSEC-2026-0176: out-of-bounds read in PyList/PyTuple iterators, RUSTSEC-2026-0177: missing Sync bound on PyCFunction::new_closure). Ran cargo update to regenerate Cargo.lock and regenerated THIRD-PARTY-LICENSES.txt.

Signed-off-by: Sean Tang <171081544+seant-aws@users.noreply.github.com>
@seant-aws
seant-aws marked this pull request as ready for review June 17, 2026 23:15
@seant-aws
seant-aws requested a review from a team as a code owner June 17, 2026 23:15
@seant-aws
seant-aws merged commit 4d8e3a8 into OpenJobDescription:mainline Jun 18, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants