cve.bz

CVE-2026-107287 pydantic pydantic ai: Uncontrolled Resource Consumption

6.5 mediumEPSS 0.3%Fix available

Medium (6.5) in pydantic pydantic ai. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in pydantic-ai 1.107.7, 2.52.0.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-107287 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-107287?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-107287?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-107287 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pydantic:pydantic_aifrom 1.77.0 before 1.107.7
pydantic:pydantic_aifrom 2.0.0 before 2.52.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v36g-jcw9-x7cwPyPIpydantic-ai>=1.77.0 <1.107.71.107.7
GHSA-v36g-jcw9-x7cwPyPIpydantic-ai>=2.0.0b1 <2.52.02.52.0
GHSA-v36g-jcw9-x7cwPyPIpydantic-ai-slim>=1.77.0 <1.107.71.107.7
GHSA-v36g-jcw9-x7cwPyPIpydantic-ai-slim>=2.0.0b1 <2.52.02.52.0
PYSEC-2026-4281PyPIpydantic-ai>=1.77.0 <1.107.7
>=2.0.0b1 <2.52.0
1.107.7, 2.52.0
PYSEC-2026-4290PyPIpydantic-ai-slim>=1.77.0 <1.107.7
>=2.0.0b1 <2.52.0
1.107.7, 2.52.0

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat has rated this flaw as MODERATE severity. The pydantic-ai package, as shipped in Red Hat Enterprise Linux AI and Lightspeed Core container images, is affected by a denial-of-service flaw in its local web fetching. When the local web_fetch_tool or the WebFetch local fallback processes attacker-controlled HTML containing deeply nested block elements, the HTML-to-Markdown conversion repeatedly reprocesses accumulated text and can greatly expand intermediate output before the returned-content limit is applied, consuming excessive CPU and memory and delaying or stalling other work in the process. A remote attacker who controls web content that the application is directed to fetch can use this to exhaust resources and cause a denial of service; exploitation requires user or model interaction to direct the fetch to attacker-controlled content. Confidentiality and integrity are not impacted, and provider-native web fetching is not affected. The fix for the affected Red Hat products is currently deferred because the impact is MODERATE with a CVSS 3.1 score of 6.5, below the threshold at which these product streams file trackers; the residual risk is limited to the availability of the affected process in its execution environment.

Red Hat's mitigation

A workaround is available: configure agents to use provider-native web fetching, which is not affected by this issue, instead of the local web_fetch_tool or the WebFetch local fallback. Disabling or restricting the local web fetch tool so it cannot be used for model-directed fetches of untrusted URLs also reduces exposure. Upstream has fixed this issue in pydantic-ai 1.107.7 and 2.52.0; however, the fix for the Red Hat delivered products is currently deferred.

ProductPackageStateAdvisory
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-107287.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON