Standard Library

GoContext

Represents context.Context. Value() can propagate tainted data stored by upstream handlers — treat returned values as taint sources in inter-procedural analysis.

1 source
Taint flow1 source 0 sinks
Sources — untrusted input
.Value()

Sources

.Value()Source
#
Signature
Value(key any) any

Returns value associated with key. Source of taint when key is a request-scoped user-data key.

tracks:return

Other Methods

.WithValue()Neutral
#
Signature
WithValue(parent Context, key, val any) Context

Returns context carrying val. Propagates taint from val.

Fully-Qualified Names

FQNField
context.Contextfqns[0]
*.Contextpatterns

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import GoContext