Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pydantic-ai-slim
  4. ›
  5. CVE-2026-107287

CVE-2026-107287: Pydantic AI: Excessive resource use when local web fetching converts nested HTML

October 8, 2026

Applications using Pydantic AI’s local web-fetch tool can experience excessive CPU and memory use when it converts attacker-controlled HTML. An agent must fetch the affected page; provider-native web fetching is not affected.

References

  • github.com/advisories/GHSA-v36g-jcw9-x7cw
  • github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c
  • github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545
  • github.com/pydantic/pydantic-ai/pull/8984
  • github.com/pydantic/pydantic-ai/pull/8985
  • github.com/pydantic/pydantic-ai/releases/tag/v1.107.7
  • github.com/pydantic/pydantic-ai/releases/tag/v2.52.0
  • github.com/pydantic/pydantic-ai/security/advisories/GHSA-v36g-jcw9-x7cw
  • nvd.nist.gov/vuln/detail/CVE-2026-107287

Code Behaviors & Features

Detect and mitigate CVE-2026-107287 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.77.0 before 1.107.7, all versions starting from 2.0.0-b.1 before 2.52.0

Fixed versions

  • 1.107.7
  • 2.52.0

Solution

Upgrade to versions 1.107.7, 2.52.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/pydantic-ai-slim/CVE-2026-107287.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 09 Oct 2026 12:22:57 +0000.