Two critical ReDoS vulnerabilities were discovered in the Pydantic AI Harness library, specifically within its safety features designed to sanitize agent tool output. The bugs, GHSA-m4cr-m4qc-9hh3 and GHSA-5m5q-5qj4-gx9h, were found in the ANSI escape code stripper and the default JSON Web Token (JWT) pattern used for secret redaction, respectively. These vulnerabilities could lead to denial-of-service attacks by causing the regex engine to backtrack excessively on crafted input, consuming significant processing time. Both issues have been fixed in Pydantic AI Harness version 0.70.0 and Pydantic AI version v2.70.0. AI
IMPACT These vulnerabilities highlight the risks of complex regex patterns in AI safety features, potentially impacting the reliability of agent tool output sanitization.
RANK_REASON Security vulnerabilities discovered in a software library.
- ANSI escape code
- GHSA-5m5q-5qj4-gx9h
- GHSA-m4cr-m4qc-9hh3
- JSON Web Token
- Pydantic-AI
- redact_secrets
- ReDoS
- ToolOutputLimits
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →