
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
eslint-plugin-sql-injection
Advanced tools
ESLint plugin that checks for string concatenation in SQL queries
ESLint plugin that checks for string concatenation in SQL queries. By default it looks for any function calls where the function name is query
, or you can override that with the options. See the examples directory for valid and invalid samples for the rule.
npm install eslint-plugin-sql-injection
no-sql-injection
- Prevent using string concatenation in SQL queriesqueryFunctionNames
controls what function names to inspectAdd a plugins
section and specify sql-injection
as a plugin:
{
"plugins": [
"sql-injection"
]
}
Enable the rule:
{
"rules": {
"sql-injection/no-sql-injection": "error"
}
}
Or with options:
{
"rules": {
"sql-injection/no-sql-injection": [ "error", { "queryFunctionNames": [ "q" ] } ]
}
}
eslint-plugin-sql-injection is licensed under the MIT License.
FAQs
ESLint plugin that checks for string concatenation in SQL queries
The npm package eslint-plugin-sql-injection receives a total of 122 weekly downloads. As such, eslint-plugin-sql-injection popularity was classified as not popular.
We found that eslint-plugin-sql-injection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.