Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

oxlint-plugin-mongodb-security

Latest version: v10.1.4

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: ofriperetz
20 Stars
0 Forks
13 Versions
2.0K Downloads
TypeScript Repo language

Scan summary

oxlint-plugin-mongodb-security was last scanned on 26 Nov 2026 at version 10.1.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 13 versions; the latest 5 were published within 7 days (20–26 Nov 2026).
  • Findings: No rules fired in version 10.1.4.
  • Downloads: 1,976 downloads.

Versions

13 versions published
Versions and the rules that fired in each
VersionPublishedStatus
10.1.4 LATEST 26 Nov 2026 No rules fired
10.1.3 25 Nov 2026 No rules fired
10.1.2 24 Nov 2026 No rules fired
10.1.1 20 Nov 2026 Not shown
10.1.0 20 Nov 2026 Not shown

No rules fired in 10.1.4

Findings

Findings for v10.1.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 10.1.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Description

oxlint-plugin-mongodb-security is the oxlint and Vite+ name for eslint-plugin-mongodb-security. It carries the same rules under the same IDs (mongodb-security/<rule>), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.

Covered natively by oxlint

None of these 16 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.

  • Why — a linter nobody reads protects nothing. We would rather miss a finding than spend your attention on one that was never real.
  • How — evidence, not names. A rule fires on what the code does, resolved through the AST and ESLint's own scope analysis.
  • What — every finding carries its fix, in prose for a human and as structured JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.

That trade costs recall, and we measure it: methodology · results · a false positive is a bug.

Getting Started

npm install oxlint-plugin-mongodb-security --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';

export default defineConfig({
  lint: {
    jsPlugins: ['oxlint-plugin-mongodb-security'],
    rules: {
      'mongodb-security/no-debug-mode-production': 'error',
      'mongodb-security/no-hardcoded-connection-string': 'error',
      'mongodb-security/no-hardcoded-credentials': 'error',
      'mongodb-security/no-operator-injection': 'error',
      'mongodb-security/no-unsafe-populate': 'error',
      'mongodb-security/no-unsafe-query': 'error',
      'mongodb-security/no-unsafe-regex-query': 'error',
      'mongodb-security/no-unsafe-where': 'error',
    },
  },
});
oxlint
{
  "jsPlugins": ["oxlint-plugin-mongodb-security"],
  "rules": {
    "mongodb-security/no-debug-mode-production": "error",
    "mongodb-security/no-hardcoded-connection-string": "error",
    "mongodb-security/no-hardcoded-credentials": "error",
    "mongodb-security/no-operator-injection": "error",
    "mongodb-security/no-unsafe-populate": "error",
    "mongodb-security/no-unsafe-query": "error",
    "mongodb-security/no-unsafe-regex-query": "error",
    "mongodb-security/no-unsafe-where": "error"
  }
}

These are the rules the plugin recommends (💼 in the table below).

ESLint

Install eslint-plugin-mongodb-security instead. It has the same rules, plus presets for ESLint's flat config.

📦 Compatibility

Package Version
oxlint verified on 1.94.0: CI loads every rule ID through jsPlugins
Vite+ lint.jsPlugins in vite.config.ts
Node.js >=22.13.0

Rules

Legend

Icon Description
💼 Recommended: Included in the recommended preset.
⚠️ Warns: Set to warn in recommended preset.
🔧 Auto-fixable: Automatically fixable by the --fix CLI option.
💡 Suggestions: Providing code suggestions in IDE.
🚫 Deprecated: This rule is deprecated.
🟢 Type-unaware: AST-only, runs in oxlint JS-plugin tier.
🟡 Type-aware (refining): pure-AST primary path; types refine precision.
🟠 Type-aware (graceful): requires TS program; silent without it.
Rule CWE OWASP CVSS Description 🧠 💼 ⚠️ 🔧 💡 🚫
no-bypass-middleware CWE-284 A01:2021 Detects Mongoose operations that bypass middleware hooks (pre/post hooks). 🟢 ⚠️
no-debug-mode-production CWE-489 A05:2021 Detects Mongoose debug mode that could expose sensitive query information in production. 🟢 💼 💡
no-hardcoded-connection-string CWE-798 A07:2021 Detects hardcoded MongoDB connection strings containing credentials in source code. 🟢 💼
no-hardcoded-credentials CWE-798 A07:2021 Detects hardcoded MongoDB authentication credentials in connection options. 🟢 💼
no-operator-injection CWE-943 A03:2021 Detects MongoDB operator injection attacks where user input is passed directly as query values, allowing at… 🟢 💼
no-select-sensitive-fields CWE-200 A01:2021 Detects queries that may return sensitive fields like passwords, tokens, or API keys. 🟢 ⚠️
no-unbounded-find CWE-400 A04:2021 Requires limit() on find queries to prevent resource exhaustion from unbounded result sets. 🟢 ⚠️ 💡
no-unsafe-populate CWE-943 A03:2021 Detects user-controlled populate() paths that could lead to data exposure or injection. 🟢 💼
no-unsafe-query CWE-943 A03:2021 Prevents NoSQL injection by detecting direct use of user input in MongoDB query objects. 🟢 💼 💡
no-unsafe-regex-query CWE-400 A03:2021 Detects user input in MongoDB $regex operators that could cause ReDoS (Regular Expression Denial of Service… 🟢 💼
no-unsafe-where CWE-943 A01:2021 Prevents use of the dangerous $where operator which executes JavaScript on the MongoDB server, enabling Rem… 🟢 💼
require-auth-mechanism CWE-287 A07:2021 Requires explicit authentication mechanism specification for MongoDB connections. 🟢 ⚠️
require-lean-queries CWE-400 A04:2021 Suggests using .lean() for read-only Mongoose queries to reduce memory usage. 🟢 💡
require-projection CWE-200 A01:2021 Requires field projection on queries to minimize data exposure. 🟢
require-schema-validation CWE-20 A04:2021 Requires validation options on Mongoose schema fields to prevent invalid or malicious data. 🟢 ⚠️
require-tls-connection CWE-295 A02:2021 Requires TLS/SSL encryption for MongoDB connections in production environments. 🟢 ⚠️ 💡

🔗 Related ESLint Plugins

Part of the Interlace ESLint ecosystem — AI-native rules with LLM-optimized error messages:

Security

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm oxlint-plugin-mongodb-security

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229