|
Hi, when we scan the following code for example: module.exports = (p1)=>{eval(p1)}CodeQL will make p1 as a "source" when doing taint analysis, but in my scenario, I don't need this. Is that possible to disable this feature? |
Answered by
asgerf
Feb 11, 2025
Replies: 2 comments
|
Hi @Anemone95 I've asked the CodeQL JavaScript team to have a look at your question. |
0 replies
|
Hi @Anemone95, Just to clarify a few things:
I don't think any of our queries would actually flag the function you showed here. The |
0 replies
Answer selected by
Anemone95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Anemone95,
Just to clarify a few things:
package.jsonfile.I don't think any of our queries would actually flag the function you showed here. The
js/unsafe-code-constructionquery comes close, but it only flags cases where the data has passed through a string concatenation first. That might be what you're seeing. In this case you may consider disabling that specific query.