XPath

python · lxml.etree
sinkDerived from model facts
RoleSink
WeaknessCWE-643
WatchesArgument[0]
Kindxpath-injection
Confidencehigh
Corroboration2

Sink boundary: Input reaches XPath expression grammar and can change the selected XML data.

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-643
XPath Injection

External input changes the structure or meaning of an XPath expression.

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

A crafted predicate broadens, bypasses, or redirects the XML query.

// modeled boundary: Argument[0] XPath(attacker_influenced_value);
To decide if this call is a bug, check
1Use parameterized XPath APIs where available.
2Keep expression structure fixed.
3Escape and validate values for the XPath context.
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 xpath-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 · xpath-injection
Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sinkxpath-injectionArgument[0]python.lxml.etree.xpath.a0high · corrob. 2