# Catastrophic backtracking regex (ReDoS) in TypeScript — Agent PR X-Ray

> Canonical page: https://codevetter.com/xray/ts-regex-dos

This is an adjudicated synthetic benchmark example, not a claim about an uploaded repository.

## Source

- Corpus: codevetter-public-benchmark/ts-regex-dos
- Language: typescript
- Category: security
- Evidence state: benchmark_ground_truth

## Finding

- Severity: high
- Title: regex dos
- Summary: 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 anchor: `source.ts:4`

## Verification boundary

The static finding is qualified against benchmark ground truth. No exact-current executable test or audience validation is included in this example, so those stages remain unverified.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
