plainToClass

typescript · class-transformer
sinkDerived from model facts
RoleSink
WeaknessCWE-1321
WatchesArgument[1]
Kindprototype-pollution
Confidencehigh
Corroboration3

Sink boundary: Input controls object keys that can modify shared prototype state.

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[1]Argument[1]The access path Atropos marks for this model.▲ sink
The weakness
CWE-1321
Prototype Pollution

Input modifies object prototype attributes without sufficient control.

What goes wrong
Attacker's-eye view · prototype-pollution

A crafted key such as a prototype path changes defaults or behavior for unrelated objects.

// modeled boundary: Argument[1] plainToClass(attacker_influenced_value);
To decide if this call is a bug, check
1Reject prototype keys.
2Use own-property checks and safe merge APIs.
3Keep parsed data in null-prototype objects where appropriate.
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[1] as a prototype-pollution 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 · prototype-pollution
Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sinkprototype-pollutionArgument[1]typescript.classtransformer.plaintoclass.a1high · corrob. 3