github / github/codeql

DataFlow::PathGraph Module not Found in codeql

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

Description

**DataFlow::PathGraph Module, not Found**

When using codeql workspace and trying to use the following code to debug sink source

```
from MyTaintTrackingConfig cfg, ConstraintValidatorisValidMethod im, DataFlow::PartialPathNode source, DataFlow::PartialPathNode sink
where
cfg.hasPartialFlow(source, sink, _) and
source.getNode().asParameter() = im.getParameter(0)
select sink, source, sink, "Partial flow from unsanitized user data"
```

I receive error that DataFlow::PathGraph Module, not Found

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the query in a CodeQL workspace, focusing on the DataFlow::PathGraph module reference and the shown partial-flow query. Check how the workspace resolves DataFlow modules and determine what is needed for the query to run without the module-not-found error.

Written by the indexing model from the issue text.

Assessment

Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.