Intel

AIKIDO-2025-10577

github.com/tdewolff/parse/v2 is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource Consumption Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 25, 2025

55

Medium Risk

This Affects:

GOgithub.com/tdewolff/parse/v2
2.7.6 - 2.8.1
Fixed in 2.8.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Denial of Service (DoS) due to improper tracking of expression nesting depth when parsing function declarations. An attacker can exploit this by crafting malicious JavaScript code containing excessively nested expressions within a function body, causing the parser to consume excessive resources (e.g., stack overflow), resulting in application crashes or hangs. This occurs because the parser fails to enforce nesting limits during function body parsing, allowing catastrophic backtracking or recursion.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/tdewolff/parse/v2 is vulnerable to Uncontrolled Resource Consumption in versions 2.7.6 - 2.8.1.

How to fix this

Upgrade the github.com/tdewolff/parse/v2 library to the patch version.