CWE-260Weakness · CWE-260

CVE-2025-57754

CRITICAL · 9.8 CVSS v3.1 Published 2025-08-21
Patch available
A vendor patch is available. No clean upgrade release — apply the published patch.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
eslint-ban-moment is an Eslint plugin for final assignment in VIHU. In 3.0.0 and earlier, a sensitive Supabase URI is exposed in .env. A valid Supabase URI with embedded username and password will allow an attacker complete unauthorized access and control over database and user data. This could lead to data exfiltration, modification or deletion.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The eslint-ban-moment ESLint plugin (v3.0.0 and earlier) contains a committed .env file that exposes a Supabase URI with embedded username and password, allowing attackers complete unauthorized access to the database and user data.

MitigationImmediately rotate the exposed Supabase credentials and remove the .env file from the repository. Implement proper secrets management using environment variables loaded at runtime rather than committed files.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if eslint-ban-moment is in your project dependencies
    Check your package.json file for 'eslint-ban-moment' under dependencies or devDependencies, or run 'npm list eslint-ban-moment' to list the installed version
    Affected if eslint-ban-moment version 3.0.0 or earlier is installed
  2. Verify the installed version number
    Run 'npm list eslint-ban-moment' or check the version field in node_modules/eslint-ban-moment/package.json
    Affected if The installed version is 3.0.0 or any version prior to 3.0.0
  3. Locate .env files in your project directory
    Search for files named '.env' or '.env.local' in your project root and check if they contain a SUPABASE_URL or similar Supabase configuration entry
    Affected if A .env file exists and contains Supabase connection configuration
  4. Inspect Supabase URI for embedded credentials
    Open the .env file and check if the Supabase URL contains credentials in the format: https://username:[email protected]
    Affected if The Supabase URI in your .env file contains embedded username and password (visible between '://' and '@')
  5. Verify .env file is excluded from version control
    Check your .gitignore file to confirm '.env' is listed, and run 'git status' to see if any .env file appears in uncommitted changes
    Affected if The .env file containing Supabase credentials is tracked in git or otherwise exposed to unauthorized parties

You are affected if eslint-ban-moment version 3.0.0 or earlier is installed and a .env file in your project contains a Supabase URI with embedded username and password credentials.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Patch available Apply the vendor patch
Vendor patch github.com →
Interim mitigation

Immediately rotate the exposed Supabase credentials and remove the .env file from the repository. Implement proper secrets management using environment variables loaded at runtime rather than committed files.

Recommended fix Moderate confidence

Version greater than 3.0.0 (likely 3.0.1 or higher)

  1. Identify all instances where eslint-ban-moment version 3.0.0 or earlier is used in your project dependencies
  2. Run your package manager update command to fetch the latest version (e.g., npm update eslint-ban-moment, yarn upgrade eslint-ban-moment, or pip install --upgrade eslint-ban-moment depending on your package manager)
  3. After upgrading, verify that the .env file containing the Supabase URI with credentials has been properly secured or removed from the repository
  4. Ensure the Supabase credentials in the exposed URI have been rotated immediately as they may be compromised
  5. Regenerate new Supabase credentials (go to Supabase dashboard, navigate to Project Settings > API, and create new URL and anon/public keys)
  6. Update your .env file with the new credentials, ensuring the password is not embedded in the URI
  7. Commit the updated package.json/package-lock.json files and ensure the .env file is added to .gitignore

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing1.0 h
  • Review / QA1.0 h
7.0 hours of engineering $1,270
Get the patch applied

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,032.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-57754 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-57754 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data