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-postgresql-security

Latest version: v3.0.7

Overview

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

Scan summary

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

  • Releases: 10 versions; the latest 3 were published within 7 days (20–26 Nov 2026).
  • Findings: No rules fired in version 3.0.7.
  • Downloads: 1,719 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.0.7 LATEST 26 Nov 2026 No rules fired
3.0.6 20 Nov 2026 No rules fired
3.0.5 20 Nov 2026 No rules fired
3.0.4 19 Nov 2026 Not shown
3.0.3 15 Nov 2026 Not shown

No rules fired in 3.0.7

Findings

Findings for v3.0.7. 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 3.0.7; other versions have their own rules, not their own score.

README

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

Description

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

Why pg-specific?

A generic SQL injection linter can flag string concatenation wherever it appears, but it cannot know the parameterization convention for each database client. The pg (node-postgres) driver uses $1, $2, … positional placeholders with a second-argument array — a pattern no generic rule encodes. eslint-plugin-postgresql-security knows this contract: it only fires on .query() calls, it stays silent when a second argument (the values array) is present, and it tracks variable taint across assignment statements so that a split-line pattern like const sql = "SELECT..." + id; client.query(sql) is flagged even though the concatenation and the query call are on separate lines. The result is a rule with near-zero false positives on legitimate parameterized queries and reliable detection on the patterns that actually lead to SQL injection.

Covered natively by oxlint

None of these 13 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-postgresql-security --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';

export default defineConfig({
  lint: {
    jsPlugins: ['oxlint-plugin-postgresql-security'],
    rules: {
      'postgresql-security/no-hardcoded-credentials': 'error',
      'postgresql-security/no-insecure-ssl': 'error',
      'postgresql-security/no-missing-client-release': 'error',
      'postgresql-security/no-transaction-on-pool': 'error',
      'postgresql-security/no-unsafe-copy-from': 'error',
      'postgresql-security/no-unsafe-query': 'error',
      'postgresql-security/no-unsafe-search-path': 'error',
    },
  },
});
oxlint
{
  "jsPlugins": ["oxlint-plugin-postgresql-security"],
  "rules": {
    "postgresql-security/no-hardcoded-credentials": "error",
    "postgresql-security/no-insecure-ssl": "error",
    "postgresql-security/no-missing-client-release": "error",
    "postgresql-security/no-transaction-on-pool": "error",
    "postgresql-security/no-unsafe-copy-from": "error",
    "postgresql-security/no-unsafe-query": "error",
    "postgresql-security/no-unsafe-search-path": "error"
  }
}

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

ESLint

Install eslint-plugin-postgresql-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 🧠 💼 ⚠️ 🔧 💡 🚫
check-query-params CWE-89 Ensures the number of placeholders in SQL queries matches the provided parameters. 🟢 ⚠️
no-batch-insert-loop CWE-400 Prevents INSERT/UPDATE/DELETE queries inside loops (N+1 query anti-pattern). 🟢 ⚠️
no-floating-query CWE-252 Ensures query promises are awaited or handled. 🟢 ⚠️
no-hardcoded-credentials CWE-798 Prevents hardcoded passwords and connection strings in PostgreSQL client initialization. 🟢 💼
no-insecure-ssl CWE-295 Prevents disabling SSL certificate validation in PostgreSQL connections. 🟢 💼
no-missing-client-release CWE-772 Ensures acquired pool clients are released back to the pool. 🟢 💼
no-select-all CWE-1049 Discourages SELECT in favor of explicit column lists. 🟢 ⚠️
no-transaction-on-pool CWE-362 Prevents running transaction commands directly on pool (must use dedicated client). 🟢 💼
no-unsafe-copy-from CWE-73 A03:2021 Prevents COPY FROM with file paths (should use STDIN for safe client-side data loading). 🟢 💼
no-unsafe-query CWE-89 SQL injection is one of the most critical security vulnerabilities 🟢 💼
no-unsafe-search-path CWE-426 Prevents dynamic SET searchpath queries that could enable schema hijacking. 🟢 💼
prefer-pool-query CWE-400 Suggests using pool.query() for single-shot queries instead of manual connect/release. 🟢 ⚠️
prevent-double-release CWE-415 Prevents calling client.release() multiple times on the same client. 🟢 ⚠️

🔗 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-postgresql-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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229