Intel

AIKIDO-2025-10759

@ts-graphviz/ast is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 31, 2025

35

Low Risk

This Affects:

JS@ts-graphviz/ast
0.0.1 - 3.0.3
Fixed in 3.0.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to denial-of-service (DoS) attacks due to stack overflow vulnerabilities in both the edge chain parser and HTML string parser. Maliciously crafted DOT files with deeply nested edge chains or HTML-like structures could trigger excessive recursion, leading to application crashes or memory exhaustion. The fix introduces configurable depth limits (maxEdgeChainDepth and maxHtmlNestingDepth) to restrict parsing depth and prevent stack overflow while maintaining backward compatibility for normal use cases.

Who does this affect?

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

Background info

@ts-graphviz/ast is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 3.0.3.

How to fix this

Upgrade the @ts-graphviz/ast library to the patch version.