CWE-506Weakness · CWE-506

CVE-2025-59037

HIGH · 8.6 CVSS v4.0 Published 2025-09-09
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
93/100
Remediation priority · Urgent
Remotely reachable No privileges

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
DuckDB is an analytical in-process SQL database management system. On 08 September 2025, the DuckDB distribution for Node.js on npm was compromised with malware (along with several other packages). An attacker published new versions of four of DuckDB's packages that included malicious code to interfere with cryptocoin transactions* According to the npm statistics, nobody has downloaded these packages before they were deprecated. The packages and versions `@duckdb/[email protected]`, `@duckdb/[email protected]`, `[email protected]`, and `@duckdb/[email protected]` were affected. DuckDB immediately deprecated the specific versions, engaged npm support to delete the affected verions, and re-released the node packages with higher version numbers (1.3.4/1.30.0). Users may upgrade to versions 1.3.4, 1.30.0, or a higher version to protect themselves. As a workaround, they may also downgrade to 1.3.2 or 1.29.1.

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 · high confidence

On September 8, 2025, the DuckDB distribution for Node.js on npm was compromised when an attacker published malicious versions of four packages (@duckdb/[email protected], @duckdb/[email protected], [email protected], and @duckdb/[email protected]) containing code designed to interfere with cryptocurrency transactions. This represents a supply chain compromise where the package artifacts themselves were tampered with during the publishing process.

MitigationUsers should immediately upgrade to patched versions (1.3.4, 1.30.0, or higher) or downgrade to safe versions (1.3.2 or 1.29.1) as a workaround. Review any systems that may have consumed these packages during the window of compromise.

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
Authentication
X
User interaction
A
Scope
X

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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. List installed DuckDB npm packages
    Run 'npm list --depth=0' or check your package-lock.json file for any of these packages: @duckdb/node-api, @duckdb/node-bindings, duckdb, @duckdb/duckdb-wasm
    Affected if Any of these four packages are listed at version 1.3.3 or 1.29.2
  2. Inspect package.json dependencies
    Open your project's package.json and search for entries under 'dependencies' or 'devDependencies' containing 'duckdb'
    Affected if Any duckdb-related package specifies version 1.3.3 or 1.29.2
  3. Verify installed package versions
    Run 'npm list @duckdb/node-api @duckdb/node-bindings duckdb @duckdb/duckdb-wasm' to see exact installed versions
    Affected if The installed version matches exactly 1.3.3 for node-api, node-bindings, or duckdb; or 1.29.2 for duckdb-wasm
  4. Check for recent npm installations
    Review npm install logs or audit your dependency installation history between September 8, 2025 and the date of patching
    Affected if These specific versions were installed during that timeframe

A system is affected if any of the four DuckDB npm packages are installed at versions 1.3.3 or 1.29.2, indicating exposure to the compromised supply chain.

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
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Users should immediately upgrade to patched versions (1.3.4, 1.30.0, or higher) or downgrade to safe versions (1.3.2 or 1.29.1) as a workaround. Review any systems that may have consumed these packages during the window of compromise.

Recommended fix High confidence

@duckdb/node-api@>=1.3.4, @duckdb/node-bindings@>=1.3.4, duckdb@>=1.3.4, @duckdb/duckdb-wasm@>=1.30.0

  1. 1. Check your project's package.json to identify which DuckDB packages are installed and their current versions
  2. 2. For packages `duckdb`, `@duckdb/node-api`, and `@duckdb/node-bindings`: run `npm install @duckdb/node-api@latest` (or specific version 1.3.4 or higher)
  3. 3. For package `@duckdb/duckdb-wasm`: run `npm install @duckdb/duckdb-wasm@latest` (or specific version 1.30.0 or higher)
  4. 4. Run `npm audit` or review your lock files to confirm all DuckDB packages are on safe versions
  5. 5. Test your application to ensure functionality is intact after the upgrade
Caveat Minor version upgrades are generally safe but test thoroughly as with any dependency update

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

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA1.0 h
9.0 hours of engineering $1,540
Get help mitigating

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-59037 — 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-59037 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