Intel

AIKIDO-2026-766779

pest is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 16, 2026
October 16, 2026

42

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

pest can overflow the native stack on deeply nested input, potentially aborting the process. pest::set_call_limit does not prevent this reliably, as optional and repeated expressions can recover from call-limit errors. pest_meta also accepts left-recursive grammars that can overflow the stack during parsing. The fix prevents recovery from call-limit and stack-limit errors, and checks stack headroom at parser entry points in supported std builds.

How do I fix this?

Upgrade the pest and/or the pest_derive library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses untrusted input with pest, or compiles pest grammars with pest_derive.

Package

Versions

2.0.0 - 2.9.2

Fixed in 2.9.3

Background info

pest is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.9.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea