This release includes 1 security fix for security teams reviewing exposed deployments.
Topics
Affected surfaces
ReleasePort's take
Moderate signalVercelAIAdapter now handles `UploadedFile` and `FileUrl` uniformly to eliminate a confusedβdeputy file read flaw.
Why it matters: Fixes a highβseverity (90) security vulnerability affecting the VercelAIAdapter UI adapter; operators should apply the update immediately.
Summary
AI summaryUpdates π‘οΈ Security, π Features, and π Bug Fixes across a mixed release.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Security | Critical |
Handle `UploadedFile` consistently with `FileUrl` to fix confused-deputy file read vulnerability in VercelAIAdapter. Handle `UploadedFile` consistently with `FileUrl` to fix confused-deputy file read vulnerability in VercelAIAdapter. Source: llm_adapter@2026-06-10 Confidence: high |
β |
| Feature | Medium |
Add `known_model_names()` to enumerate `KnownModelName` members. Add `known_model_names()` to enumerate `KnownModelName` members. Source: llm_adapter@2026-06-10 Confidence: high |
β |
| Feature | Medium |
Add `CachePoint` and prompt caching support to openrouter. Add `CachePoint` and prompt caching support to openrouter. Source: llm_adapter@2026-06-10 Confidence: high |
β |
| Feature | Medium |
Add Claude Fableβ―5 (`claude-fable-5`) and Claude Mythosβ―5 (`claude-mythos-5`) model support. Add Claude Fableβ―5 (`claude-fable-5`) and Claude Mythosβ―5 (`claude-mythos-5`) model support. Source: llm_adapter@2026-06-10 Confidence: high |
β |
| Dependency | Low |
Bump pythonβpackages group with 18 dependency updates. Bump pythonβpackages group with 18 dependency updates. Source: llm_adapter@2026-06-10 Confidence: high |
β |
| Bugfix | Medium |
Guard `message=None` Bedrock start events in Anthropic stream path. Guard `message=None` Bedrock start events in Anthropic stream path. Source: llm_adapter@2026-06-10 Confidence: high |
β |
| Bugfix | Medium |
Fix `AnthropicModel.count_tokens` when native tools are used. Fix `AnthropicModel.count_tokens` when native tools are used. Source: llm_adapter@2026-06-10 Confidence: high |
β |
Full changelog
What's Changed
π‘οΈ Security
- Handle
UploadedFileconsistently withFileUrlin UI adapters by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5772- Security advisory:
VercelAIAdaptertrusts client-controlled provider metadata to constructUploadedFilereferences (confused-deputy file read) https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w - This fix went out in v1.106.0 and v2.0.0b6.
- You are affected only if your application passes untrusted client-submitted message history to an agent through a UI adapter (e.g.
VercelAIAdapter), AND your model-provider or cloud-storage account holds files referenceable by an attacker-guessableUploadedFileid or storage URI (e.g.s3://β¦,gs://β¦). - You are not affected if you do not pass untrusted client-submitted message history to the agent, or you strip
UploadedFileparts before running it. - You are not affected via
AGUIAdapter/Agent.to_ag_uion defaults β thepreserve_file_dataflag that re-enables this path is off by default.
- Security advisory:
π Features
- Add
known_model_names()to enumerateKnownModelNamemembers by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5803 - feat(openrouter): add
CachePointand prompt caching support by @Adversarian in https://github.com/pydantic/pydantic-ai/pull/4604 - Add Claude Fable 5 (
claude-fable-5) and Claude Mythos 5 (claude-mythos-5) support by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5849
π Bug Fixes
- fix(anthropic): guard
message=NoneBedrock start events in stream path by @Bartok9 in https://github.com/pydantic/pydantic-ai/pull/5818 - Fix
AnthropicModel.count_tokenswith native tools by @kazmer97 in https://github.com/pydantic/pydantic-ai/pull/5704
π¦ Dependencies
- chore(deps): bump the python-packages group across 1 directory with 18 updates by @dependabot[bot] in https://github.com/pydantic/pydantic-ai/pull/5768
New Contributors
- @Bartok9 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5818
- @kazmer97 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5704
Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v1.106.0...v1.107.0
Security Fixes
- GHSA-h7p7-w5gc-xj3w β VercelAIAdapter now validates clientβcontrolled provider metadata to prevent confusedβdeputy file read when constructing UploadedFile references
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
Related context
Related tools
Earlier breaking changes
- v1.95.0 rename βbuilt-in toolsβ to βnative toolsβ, deprecate old fields, register via capabilities=[NativeTool(...)]
Beta — feedback welcome: [email protected]