Plugin: mongodb-security
Changelog
Release history and version updates for eslint-plugin-mongodb-security
Live from GitHub
This changelog is fetched directly from CHANGELOG.md on GitHub and cached for 2 hours.
8.2.1 (2026-02-02)
This was a version bump only for eslint-plugin-mongodb-security to align it with other projects, there were no code changes.
Changelog
All notable changes to eslint-plugin-mongodb-security will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.0.0] - 2026-01-09
Added
- Initial release with 16 security rules
- NoSQL Injection Prevention (4 rules)
no-unsafe-query- Prevents string concatenation in MongoDB queriesno-operator-injection- Prevents $ne, $gt, $lt injection attacksno-unsafe-where- Prevents $where operator RCE (CVE-2025-23061, CVE-2024-53900)no-unsafe-regex-query- Prevents ReDoS via $regex
- Credentials & Connection Security (4 rules)
no-hardcoded-connection-string- Prevents credentials in connection URIsno-hardcoded-credentials- Prevents hardcoded auth optionsrequire-tls-connection- Requires TLS for production connectionsrequire-auth-mechanism- Requires explicit SCRAM-SHA-256
- Mongoose ODM Security (5 rules)
require-schema-validation- Requires Mongoose schema validatorsno-select-sensitive-fields- Prevents returning password/token fieldsno-bypass-middleware- Prevents bypassing pre/post hooksno-unsafe-populate- Prevents user-controlled populate()require-lean-queries- Suggests .lean() for read-only queries
- Best Practices (3 rules)
no-unbounded-find- Requires limit() on find queriesrequire-projection- Requires field projectionno-debug-mode-production- Prevents debug mode in production
- Full support for
mongodb,mongoose,mongodb-client-encryption,@typegoose/typegoose - AI-optimized error messages with CWE and OWASP references
- Three configuration presets:
recommended,strict,mongoose - OWASP Top 10 2021 mapping (A01-A07 coverage)
View on GitHub →