Description
Hello,
I had a question regarding the npm module webpack. Recently it was discovered that, since webpack contains a file that uses dangerous hash (md5.js), it may be considered unsafe. However, I would like to test for flow (dataflow and controlflow) in webpack to see if this md5 file is still even used/accessed, since if it is not then codeql could help determine if this is a false positive and safe to use.
Essentially where I am running into trouble is that when I download webpack (either from the open source repo or via npm) and create a codeql database of it, the node_modules directory (which contains the md5.js file) does not seem to be included within the database. In fact it seems like the database consists almost completely of files from codeql javascript libraries, webpack/lib, and webpack/test. At first I had realized that node_modules was included within .gitignore and I removed it from there (so now it shows up locally), however when I create a database from webpack to test for flow between md5.js and other parts of webpack, the node_modules directory still seems to be missing from the database. I tried to create a database of only the node_modules directory, but I got a build error saying that no JavaScript or TypeScript files were found, even though there are plenty of .js files in node_modules.
Would anyone be able to help me understand why codeql database create is not extracting files from node_modules, and what I might be able to do to fix this, so I can test for controlflow/dataflow from inside the node_modules directory to other parts of webpack?
Thanks!