Skip to content

Update pyo3 to 0.29 to close three security advisories - #11

Merged
Paururo merged 1 commit into
mainfrom
fix/pyo3-advisories
Aug 22, 2026
Merged

Update pyo3 to 0.29 to close three security advisories#11
Paururo merged 1 commit into
mainfrom
fix/pyo3-advisories

Conversation

@Paururo

@Paururo Paururo commented Aug 22, 2026

Copy link
Copy Markdown
Member

Closes the three open Dependabot alerts on the Python bindings, all against pyo3 < 0.29 in bindings/python/Cargo.toml:

Severity Advisory Issue
High GHSA-36hh-v3qg-5jq4 Out-of-bounds read in nth / nth_back for PyList and PyTuple iterators
Medium GHSA-chgr-c6px-7xpp Missing Sync bound on PyCFunction::new_closure closures
Low GHSA-pph8-gcv7-4qj5 Risk of buffer overflow in PyString::from_object

All three are fixed in pyo3 0.29.0, so the pin moves 0.22 to 0.29.

The only API change the bump needs is PyDict::new_bound(py), which lost its _bound suffix after 0.23 and is now PyDict::new(py). Everything else (#[pymodule] over &Bound<PyModule>, wrap_pyfunction!, set_item, unbind) was already the modern Bound API and is unchanged.

Verified locally: the crate compiles and links against pyo3 0.29.2 with abi3-py38 unchanged (a full extension-module link on macOS, with -undefined dynamic_lookup).

The Python bindings pinned pyo3 0.22, which the dependency graph flags for an out-of-bounds read in the PyList and PyTuple iterators (high), a missing Sync bound on PyCFunction::new_closure (medium), and a buffer overflow in PyString::from_object (low), all fixed in 0.29.0. The only source change the bump needs is PyDict::new_bound, now spelled PyDict::new; the crate builds and links against pyo3 0.29.2 with abi3-py38 unchanged.
@github-actions github-actions Bot added the bindings Python and WebAssembly bindings label Aug 22, 2026
@Paururo
Paururo merged commit 48e3e22 into main Aug 22, 2026
11 checks passed
@Paururo
Paururo deleted the fix/pyo3-advisories branch August 22, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bindings Python and WebAssembly bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant