Trust · Release-analyse · AI en jij
OpenAI Python 3.59 tightens four agent boundaries — but does not make your agent safe by itself
TL;DRThe new stable SDK release checks an upload directory after path resolution, removes known credential headers from error objects, rejects empty webhook secrets and stops non-finite numbers before a local tool handler in a beta agent session. These are small boundaries with real effects, not a general safety certificate.
You and AI. Our lens: what changes for you, for us and for whoever makes the decisions?
OpenAI published version 3.59.0 of its Python SDK as a stable release on 24 November. Alongside new healthcare model identifiers, it contains four defensive changes that directly touch agent work: which upload directory is read, which credentials can appear in error objects, when a webhook secret is valid and which numbers may reach a local tool in a beta agent session.
The first fix compares the selected upload directory with the directory that remains after path resolution. If its identity changes during that step, preparation stops before files are selected or uploaded. Symlinks in parent paths remain supported. The commit describes sync and async regression tests and explicitly limits the check to path resolution; it is not a general file-system or sandbox control.
A second change applies the existing sensitive-header list to request copies attached to API errors. According to the commit, redirect history and pending redirects follow the same rule. The request used by the transport stays intact. Anyone resending a request from an error object must restore authentication. The fix reduces one leak path in logging and debugging, but it covers only known headers on these public attributes.
The webhook fix now treats a secret that is empty after decoding as missing configuration and raises ValueError. Valid raw and prefixed secrets keep their existing behavior. That makes configuration fail before webhook verification can proceed with an apparently configured but empty secret. The commit reports 232 passing webhook tests; those test the change and are not an independent security audit.
The fourth fix examines decoded arguments for local tools in beta agent sessions for NaN, Infinity and values that overflow to infinity, including values nested in arrays or objects. When one appears, the handler is skipped and the existing argument-error path is used. This matters because decodable structure and valid domain values are different: a number field can be present while still disrupting a calculation, a limit or a downstream library.
The lesson for you is in the unglamorous layer between model and action. A prompt can ask for careful behavior; an SDK check can actually block execution. Yet none of these four fixes proves that objectives are sound, permissions are minimal, tool results are correct or consequences are reversible. OpenAI published no CVE, exploit report or impact measurement, and the release evidence is maintainer-supplied.
Keep a reversible check small. Pin 3.58 and 3.59 in two test environments, use temporary directories, dummy headers and a local stub tool, and record whether each handler or upload is stopped and what remains visible in the error object. Never use a real token. Stop if the test needs real data, network access or production webhooks. Keep the SDK version, test input and result together so a later update can be compared against the same boundary. This is an integration-boundary test, not a product benchmark. The result shows whether your integration benefits from the new boundary, not whether the whole agent is safe.
For you and us
When an AI agent uses files, webhooks or local tools, the model is not the only thing deciding what happens. The SDK is an execution boundary between model output and your system, so version control and regression tests are part of human control.
Your next step
Test 3.59 in a separate branch using fake data only: a directory whose identity changes during path resolution, an empty webhook secret, nested NaN/Infinity values for a local tool in a beta agent session and a synthetic API error carrying a dummy token.
Good to know
OpenAI labels these changes bug fixes, not CVEs. The commits describe regression tests, but no demonstrated attack, user harm or evidence that an agent using this SDK is safe as a whole.
Original sources
- openai-python v3.59.0 release
- openai-python: check agent upload directory after path resolution
- openai-python: redact credential headers on API error requests
- openai-python: reject empty webhook signing keys
- openai-python: reject non-finite agent tool arguments
What do you think?
A reader average appears after three ratings.