{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-133161 in the wild and no public exploit code.","exposure":"","fix":"Upgrade pydantic-ai-harness to 0.13.0 or later. The advisory says that version fixes it.","what":"CVE-2026-133161 is a high-severity vulnerability in pydantic-ai-harness, published on 19 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-133161 and fix it if it is affected.\n\nWhat it is: CVE-2026-133161 is a high-severity vulnerability in pydantic-ai-harness, published on 19 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-133161 in the wild and no public exploit code.\n\nAffected product: pydantic-ai-harness. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-133161/ (Markdown: https://insights.sbomify.com/CVE-2026-133161/index.md)","id":"CVE-2026-133161","markdown":"https://insights.sbomify.com/CVE-2026-133161/index.md","name":"CVE-2026-133161","record":{"aliases":["GHSA-wvp9-4g4g-qwgm"],"analysis":null,"analysis_generated_by":null,"assigner":"Pydantic","component":null,"cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"### Summary ui\n\nWith `strip_ansi=True`, Pydantic AI Harness's `ToolOutputLimits` capability removes ANSI escape sequences from tool output with a pattern that takes time quadratic in the length of a line. A tool result of a few hundred kilobytes, crafted with many unterminated escape sequences, can occupy the event loop for tens of seconds to minutes, delaying every other request and agent run in the process.\n\n### Details\n\nThis affects applications that set `strip_ansi=True` on `ToolOutputLimits` (named `OverflowingToolOutput` before 0.13.0) and run tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers. Stripping runs on the event loop before the capability reduces the output, so its own size limits do not bound it.\n\nThe assumed attacker can place text in content a tool returns.\n\n### Mitigation\n\nUpgrade `pydantic-ai-harness` to 0.70.0 or later. Until then, leave `strip_ansi` at its default, `False`.\n\nOn Pydantic AI v1, the harness cannot be upgraded past 0.4.0. Upgrade to Pydantic AI v2 and `pydantic-ai-harness` 0.70.0, or leave `strip_ansi` off.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Harness `ToolOutputLimits` ANSI stripping can take quadratic time, blocking the event loop","id":"CVE-2026-133161","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":1,"n_vendor_status":0,"next":{"headline":"MISP: External Sync User Can Modify Protected Events Without Signature via Multiple Write Routes","id":"CVE-2026-133163"},"nickname":null,"packages":[],"prev":{"headline":"CSV Formula Injection in Audit Log CSV Exports in flowintel","id":"CVE-2026-133157"},"products":["pydantic-ai-harness"],"published":"2026-11-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","text_fixes":["0.13.0"],"updated":"2026-11-19","vendor_status":[],"vendors":["pydantic"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-133161/"}