CodeVetter
← All X-Rays
CodeVetter · local evidence export

Catastrophic backtracking regex (ReDoS) in TypeScript

codevetter-public-benchmark/ts-regex-dos

detected · high confidence

Verification

Code reviewcompleted

Qualified static finding recorded.

Executable testnot verified

No exact-current runtime evidence is included.

Audiencenot run

No audience validation occurred.

Finding

highbenchmark ground truth

regex dos

The regex uses a nested + quantifier ((...+)+) causing exponential backtracking on non-matching inputs; a long crafted string hangs the event loop and denies service to all other requests.

source.ts:4