Security mailing lists by PureSourceCode

CVE-2026-107286

HIGH 7.5CVSS 3.1

Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early

Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 2.10.0 until 2.53.0, streamed requests made through ConcurrencyLimitedModel or limit_model_concurrency can retain shared concurrency slots because anyio.CapacityLimiter associates an acquired slot with the borrowing task while streaming cleanup can run in a different task. Early stream termination, cancellation, consumer exceptions, or complete stream_text() consumption with debounce_by=0.1 can therefore leave capacity occupied, eventually preventing later requests that share the long-lived limiter from proceeding and causing a denial of service. Agent-level max_concurrency and non-streaming model requests are not affected. This issue is fixed in version 2.53.0.

Published
8 Oct 2026
Last modified
15 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-772
Also known as
GHSA-6fqq-452j-qhrpPYSEC-2026-4276PYSEC-2026-4285
Sources
NVDJSONOSV GHSA-6fqq-452j-qhrpJSONOSV PYSEC-2026-4276JSONOSV PYSEC-2026-4285JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV PyPA CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:*
>= 2.10.0, < 2.53.0 2.53.0
OSV PyPI pydantic-ai >= 2.10.0, < 2.53.0 2.53.0
OSV PyPI pydantic-ai-slim >= 2.10.0, < 2.53.0 2.53.0

References

History

  • 25 Nov 2026 21:22 UTC · NVD: first stored (published 8 Oct 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Oct 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.