github / github/codeql

Javascript: How can I filter some dataflow results?

Open
#6,920 13 comments 0 reactions 0 assignees View on GitHub
JS question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Example:
```
var a = request.body;
var obj = {
"body": a.a;
"headers": a.b
}
foo(obj)
```
while I query the above code, there are two flow path:
```
1. a -> obj.body -> foo
2. a -> obj.headers -> foo
```
And I would like to show result 1 only, and filter result 2.
How can I solve the problem? Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.