Skip to content

fix(deps): bump pyo3 to 0.29.0 (RUSTSEC-2026-0176 / RUSTSEC-2026-0177)#388

Merged
epappas merged 1 commit into
mainfrom
fix/pyo3-rustsec-2026-0176-0177
Jun 12, 2026
Merged

fix(deps): bump pyo3 to 0.29.0 (RUSTSEC-2026-0176 / RUSTSEC-2026-0177)#388
epappas merged 1 commit into
mainfrom
fix/pyo3-rustsec-2026-0176-0177

Conversation

@epappas

@epappas epappas commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

What

Two RUSTSEC advisories published 2026-06-11 against pyo3 <0.29.0 turned the Security Audit gate red on every branch (first seen on #387, a docs-only PR; main's last green run predates the advisories):

llmtrace-python does not call the affected APIs directly (no PyList/PyTuple iteration, no new_closure), but the audit gate is binary and correctly so.

Migration

pyo3 0.24.2 → 0.29.0. The only breaking change that bit: the PyObject alias was removed — replaced with Py<PyAny> throughout lib.rs (6 sites, mechanical). Lockfile updates pyo3* crates only (plus dropping the now-unused unindent).

Evidence

  • cargo build -p llmtrace-python: clean
  • RUSTFLAGS="-D warnings" cargo clippy -p llmtrace-python --all-targets: clean
  • cargo fmt --all --check: clean
  • CI's Security Audit job re-runs cargo-audit against the updated lockfile — that is the authoritative verification this PR exists for.

…6-0177)

Two advisories published 2026-06-11 against pyo3 <0.29.0 (out-of-bounds
read in PyList/PyTuple iterator nth/nth_back; missing Sync bound on
PyCFunction::new_closure) turned the Security Audit gate red on every
branch. llmtrace-python does not call the affected APIs directly, but
the audit gate is binary.

Migration: pyo3 0.29 removed the PyObject alias — replaced with
Py<PyAny> throughout lib.rs. No other API changes were needed; clippy
clean under -D warnings.
@epappas epappas merged commit 70177ed into main Jun 12, 2026
15 checks passed
@epappas epappas deleted the fix/pyo3-rustsec-2026-0176-0177 branch June 12, 2026 16:55
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