---
title: "Discussion on \"Two ReDoS Bugs Were Hiding in Pydantic AI's Own Safety Features\" | Hashnode"
description: "Discussion on \"Two ReDoS Bugs Were Hiding in Pydantic AI's Own Safety Features\". pydantic-ai-harness shipped two high-severity ReDoS bugs in its own output sanitizer and secret redactor. A runnable demo shows the backtracking and the fix."
url: "https://hashnode.com/posts/pydantic-ai-harness-redos/6b0da50219596af442aa37aa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Two ReDoS Bugs Were Hiding in Pydantic AI's Own Safety Features](https://webofmike.hashnode.dev/pydantic-ai-harness-redos?utm_source=hashnode&utm_medium=feed)

pydantic-ai-harness shipped two high-severity ReDoS bugs in its own output sanitizer and secret redactor. A runnable demo shows the backtracking and the fix.

5d ago · 8 min read · webofmike.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#mcp](https://hashnode.com/tag/mcp)

## Written by

[Mike Moore](https://hashnode.com/@webofmike)

@webofmike

  
[View profile](https://hashnode.com/@webofmike)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
