escape

javascript · escape-string-regexp
sanitizerDerived from model facts
RoleSanitizer
WeaknessCWE-1333
WatchesArgument[0] -> ReturnValue
Kindredos
Confidencemedium
Corroboration2

Sanitizer boundary: A regular expression can consume disproportionate CPU on adversarial input.

Argument map · what each slot does

The pack does not provide a callable signature for this record; the watched access path is shown directly.

ArgAccess pathPurposeWatched
Argument[0]Argument[0]The access path Atropos marks for this model.▲ sanitizer
The weakness
CWE-1333
Inefficient Regular Expression Complexity

A regular expression has inefficient complexity that can consume excessive CPU.

What goes wrong
Attacker's-eye view · redos

A crafted string drives pathological backtracking and ties up the process.

// modeled boundary: Argument[0] -> ReturnValue escape(attacker_influenced_value);
To decide if this call is a bug, check
1Review nested ambiguity and backtracking.
2Bound input length.
3Use a linear-time engine or timeout where available.
These checks require the surrounding codebase. The model names the boundary; it does not decide reachability or prove that a guard dominates every path.
Is this a bug in your code?Atropos stops here — by design

Atropos identifies Argument[0] -> ReturnValue as a redos sanitizer. It cannot see whether untrusted data reaches this call in your repository.

Lachesis is the codebase-level step: it traces reachability and guards for this symbol.

Check this symbol in Lachesis
The family · redos
Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sanitizerredosArgument[0] -> ReturnValuejavascript.escape-string-regexp.escape.a0-retmedium · corrob. 2