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

Latest version: v2.0.5

Overview

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

Scan summary

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

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

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.5 LATEST 26 Nov 2026 No rules fired
2.0.4 20 Nov 2026 No rules fired
2.0.3 20 Nov 2026 No rules fired
2.0.2 15 Nov 2026 Not shown
2.0.1 6 Nov 2026 Not shown

No rules fired in 2.0.5

Findings

Findings for v2.0.5. 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 2.0.5; other versions have their own rules, not their own score.

README

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

Description

oxlint-plugin-openai-security is the oxlint and Vite+ name for eslint-plugin-openai-security. It carries the same rules under the same IDs (openai-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 3 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-openai-security --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';

export default defineConfig({
  lint: {
    jsPlugins: ['oxlint-plugin-openai-security'],
    rules: {
      'openai-security/no-browser-api-key-exposure': 'error',
    },
  },
});
oxlint
{
  "jsPlugins": ["oxlint-plugin-openai-security"],
  "rules": {
    "openai-security/no-browser-api-key-exposure": "error"
  }
}

That enables one rule as an example; add the ones you want from the table below.

ESLint

Install eslint-plugin-openai-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-browser-api-key-exposure CWE-522 A07:2021 Forbid dangerouslyAllowBrowser, which exposes the OpenAI API key to the client 🟢
no-hardcoded-api-key CWE-798 A07:2021 Forbid a literal API key in the OpenAI client options 🟢
no-untrusted-content-in-prompt CWE-1427 A03:2021 Disallow untrusted content built into the OpenAI system prompt 🟢

🔗 Related ESLint Plugins

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

Security

Plugin Downloads Description
eslint-plugin-anthropic-security downloads Anthropic SDK security.
eslint-plugin-browser-security downloads XSS, DOM security.
eslint-plugin-drizzle-security downloads Drizzle security.
eslint-plugin-express-security downloads Express middleware hardening.
eslint-plugin-gemini-security downloads Google Gemini SDK security.
eslint-plugin-jwt-security downloads Token security.
eslint-plugin-knex-security downloads Knex security.
eslint-plugin-lambda-security downloads AWS Lambda hardening.
eslint-plugin-mcp-sdk-security downloads MCP SDK security.
eslint-plugin-mongodb-security downloads MongoDB injection.
eslint-plugin-mysql-security downloads MySQL security.
eslint-plugin-nestjs-security downloads NestJS framework hardening.
eslint-plugin-node-security downloads Server-side patterns.
eslint-plugin-openai-security downloads OpenAI SDK security.
eslint-plugin-postgresql-security downloads PostgreSQL security.
eslint-plugin-prisma-security downloads Prisma security.
eslint-plugin-secure-coding downloads Injection prevention.
eslint-plugin-sequelize-security downloads Sequelize ORM security.
eslint-plugin-sqlite-security downloads SQLite security.
eslint-plugin-supabase-security downloads Supabase security.
eslint-plugin-typeorm-security downloads TypeORM security.
eslint-plugin-vercel-ai-security downloads AI SDK security.

Code quality

Plugin Downloads Description
eslint-plugin-conventions downloads Team-specific habits and styles.
eslint-plugin-import-next downloads Fast cycle + import-graph analysis.
eslint-plugin-maintainability downloads Cognitive load and clean-code patterns.
eslint-plugin-modernization downloads ESNext migration + syntax evolution.
eslint-plugin-modularity downloads Structural integrity and DDD patterns.
eslint-plugin-operability downloads Production readiness and resource health.
eslint-plugin-react-a11y downloads React accessibility / WCAG.
eslint-plugin-react-features downloads React best practices and optimization.
eslint-plugin-reliability downloads Runtime stability and error safety.

Support

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-openai-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

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

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

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?

Frame 2085668439 (1)
Group 1261154229