Vulnerabilities in pkg:npm/@duckdb/node-bindings
PACKAGECVE-2025-59037 is a HIGH duckdb npm packages 1.3.3 and vulnerability (CWE-506: Embedded Malicious Code) affecting Duckdb libraries in the npm ecosystem. The issue involves duckdb npm packages 1.3.3 and 1.29.2 briefly compromised with malware. Remediation is available by upgrading affected packages to version 1.3.4, 1.3.4-alpha.27, 1.30.0.
pkg:npm/@duckdb/node-bindings
Vulnerability advisories affecting package pkg:npm/@duckdb/node-bindings. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w62p-hx95-gf2c | CVE-2025-59037 | HIGH | DuckDB NPM packages 1.3.3 and 1.29.2 briefly compromised with malware |
CVE-2025-59037 at a Glance
How to Fix CVE-2025-59037
To remediate this vulnerability, upgrade all affected Duckdb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install duckdb@1.3.4
npm install @duckdb/node-api@1.3.4-alpha.27
npm install @duckdb/node-bindings@1.3.4-alpha.27
npm install @duckdb/duckdb-wasm@1.30.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls duckdb
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-59037, inspect your project dependencies using npm:
npm ls duckdb
Analyze the terminal output to locate any version of Duckdb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.4), your application is affected.
Note: The npm ls duckdb command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Duckdb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59037 Affected Duckdb Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
duckdb
|
npm |
≥ 1.3.3
< 1.3.4
All 1 versions
1.3.3
|
1.3.4
|
|
@duckdb/node-api
|
npm |
≥ 1.3.3
< 1.3.4-alpha.27
All 1 versions
1.3.3
|
1.3.4-alpha.27
|
|
@duckdb/node-bindings
|
npm |
≥ 1.3.3
< 1.3.4-alpha.27
All 1 versions
1.3.3
|
1.3.4-alpha.27
|
|
@duckdb/duckdb-wasm
|
npm |
≥ 1.29.2
< 1.30.0
All 1 versions
1.29.2
|
1.30.0
|
References
Frequently Asked Questions
What is CVE-2025-59037?
Which Duckdb versions are affected?
What version fixes CVE-2025-59037?
Is duckdb affected?
Is @duckdb/node-api affected?
What CWE is associated with CVE-2025-59037?
How can I check npm dependencies for CVE-2025-59037?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w62p-hx95-gf2c",
"modified" : "2025-09-10T21:08:58Z",
"published" : "2025-09-09T14:39:14Z",
"aliases" : [ "CVE-2025-59037" ],
"summary" : "DuckDB NPM packages 1.3.3 and 1.29.2 briefly compromised with malware",
"details" : "The DuckDB distribution for [Node.js](http://node.js/) on [npm](https://www.npmjs.com/) was compromised with malware (along with [several other packages](https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised)). An attacker published new versions of four of duckdb’s packages that included **malicious code to interfere with cryptocoin transactions**. The following packages and versions are affected:\n\n- `@duckdb/node-api@1.3.3`\n- `@duckdb/node-bindings@1.3.3`\n- `duckdb@1.3.3`\n- `@duckdb/duckdb-wasm@1.29.2`\n\n> Note: The current release version of DuckDB is 1.3.2, with 1.4.0 expected to be released on Sept 10th, 2025 (tomorrow as of this writing). We do not plan to ever release a “legit” DuckDB 1.3.3. Users should double-check that they are not accidentally updating to those affected versions. \n\n\nWe have ourselves noticed this *within four hours* of it happening. Here’s our response:\n\n- As an immediate response, we have **deprecated** the specific versions. \n- We have reached out to npm support to **delete the affected versions**. They were so kind to do so.\n- We have also **re-released** the node packages with higher version numbers (1.3.4/1.30.0) as a further safeguard so the latest version of the package points to a safe version\n\nWe apologize for this issue. We are reviewing our internal processes to ensure the safety of future releases.\n\n### Postmortem ###\n\nOn September 8th (Monday), the DuckDB maintainers received the following message from \"...@npmjs.help\":\n\n<img width=\"1134\" height=\"614\" alt=\"Screenshot 2025-09-09 at 11 07 09\" src=\"https://github.com/user-attachments/assets/0ce24798-1f5a-40b0-ac50-49035d99862b\" />\n\nOne of the maintainers read through this text and found it somewhat reasonable. He followed the link (now defunct) to a website hosted under the domain `npmjs.help`. This website contained a **pixel-perfect copy** of the [npmjs.com](http://npmjs.com/) website. He logged in using the `duckdb_admin` user and password, followed by 2FA. Again, the user profile, settings etc. were a perfect copy of the [npmjs.com](http://npmjs.com/) website including all user data. As requested by the email, he then re-set the 2FA setup. \n\nIn the background, the copycat website forwarded all actions to the actual npm website, so the 2FA was actually updated there, too. But they also added a new API token, which they then used to publish the malicious package versions. In hindsight, the fact that his browser did not auto-complete the login should have been a red flag. It's painful to spell out, but **we fell for a classic phishing attack**.\n\nWe again apologize for this mishap. We are reviewing our internal processes to ensure the safety of future releases. It is fortunate that we noticed this within a few hours of it happening. The DuckDBLabs team was able to set up a call at 7AM to perform an immediate response. Fortunately we were not locked out of our NPM account, which also easily could have happened. We were able to rotate passwords, tokens and API keys immediately.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "duckdb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.3"
}, {
"fixed" : "1.3.4"
} ]
} ],
"versions" : [ "1.3.3" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@duckdb/node-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.3"
}, {
"fixed" : "1.3.4-alpha.27"
} ]
} ],
"versions" : [ "1.3.3" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@duckdb/node-bindings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.3"
}, {
"fixed" : "1.3.4-alpha.27"
} ]
} ],
"versions" : [ "1.3.3" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@duckdb/duckdb-wasm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.29.2"
}, {
"fixed" : "1.30.0"
} ]
} ],
"versions" : [ "1.29.2" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/duckdb/duckdb-node/security/advisories/GHSA-w62p-hx95-gf2c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59037"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/duckdb/duckdb-node"
}, {
"type" : "WEB",
"url" : "https://github.com/duckdb/duckdb-node/releases/tag/v1.3.4"
}, {
"type" : "WEB",
"url" : "https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-09T14:39:14Z",
"nvd_published_at" : "2025-09-09T21:15:39Z"
}
}