Pydantic AI: Excessive resource use when local web fetching converts nested HTML (pydantic pydantic-ai)

CVE-2026-107287
MEDIUM 6.5

At a glance

Source
NVD
EPSS
EPSS 0.28 % Β· percentile 20 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Analyzed

Description

Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.77.0 until 1.107.7 and 2.52.0, the local web_fetch_tool and the WebFetch local fallback can consume excessive CPU and memory during HTML-to-Markdown conversion of attacker-controlled HTML containing deeply nested block elements. Conversion repeatedly reprocesses accumulated text and can greatly expand intermediate output before the returned-content limit is applied, allowing a model-directed fetch to delay other work in the process. Provider-native web fetching is not affected. This issue is fixed in versions 1.107.7 and 2.52.0.

Weaknesses (CWE)

  • CWE-400 β€” Uncontrolled Resource Consumption
  • CWE-407 β€” Inefficient Algorithmic Complexity

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HGitHub_M
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HNVD Β· security-advisories@github.com (Secondary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
pydantic Β· pydantic-aiaffected >= 1.77.0, < 1.107.7 ; affected >= 2.0.0b1, < 2.52.0
pydantic Β· pydantic-ai-slimaffected >= 1.77.0, < 1.107.7 ; affected >= 2.0.0b1, < 2.52.0

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD