Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nosql_find_injection.yaml to exclude sequelize's .findOne() false positives #115

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

bleow
Copy link
Contributor

@bleow bleow commented Mar 21, 2024

Related to issue 114: #114

A possible fix is to include require('sequelize') (for Node.js) or import ... from 'sequelize' (for ES6) into the pattern-not-inside check.

This will rule out false positives triggered by Sequelize's .findOne() function (docs), which is identical in syntax but different in functionality from MongoDB's .findOne().

@ajinabraham ajinabraham merged commit 370e904 into ajinabraham:master Apr 5, 2024
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants