andWhere

typescript · standard library · SelectQueryBuilder
sinkDerived from model facts
RoleSink
WeaknessCWE-89
WatchesArgument[0]
Kindsql-injection
Confidencehigh
Corroboration2

Sink boundary: Input reaches SQL grammar instead of remaining a bound data value.

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.▲ sink
The weakness
CWE-89
Weakness mapping

See the linked MITRE definition for the current weakness description.

What goes wrong
Attacker's-eye view · sql-injection

Quotes, operators, or comments in a crafted value alter the query's meaning.

// modeled boundary: Argument[0] andWhere(attacker_influenced_value);
To decide if this call is a bug, check
1Use prepared statements and bound parameters.
2Keep identifiers and clauses allow-listed.
3Review raw-query escape hatches separately.
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] as a sql-injection sink. 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 · sql-injection
Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sinksql-injectionArgument[0]typescript.selectquerybuilder.andwhere.a0high · corrob. 2