# CVE-2025-59037: DuckDB NPM packages 1.3.3 and 1.29.2 briefly compromised with malware

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-28)
- **CWE:** CWE-506
- **Aliases:** GHSA-w62p-hx95-gf2c
- **Published:** 2025-09-09T14:39:14.000Z
- **Modified:** 2026-06-17T09:45:28.787Z

## Who should check

- Projects that depend on npm package duckdb (\>= 1.3.3, \< 1.3.4)
- Projects that depend on npm package @duckdb/node-api (\>= 1.3.3, \< 1.3.4-alpha.27)
- Projects that depend on npm package @duckdb/node-bindings (\>= 1.3.3, \< 1.3.4-alpha.27)
- Projects that depend on npm package @duckdb/duckdb-wasm (\>= 1.29.2, \< 1.30.0)
- Anyone running duckdb-node = 1.3.3; = 1.29.2

## Description

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/node-api@1.3.3\`, \`@duckdb/node-bindings@1.3.3\`, \`duckdb@1.3.3\`, and \`@duckdb/duckdb-wasm@1.29.2\` 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.

## Affected and fixed versions

- npm `duckdb`: affected \>= 1.3.3, \< 1.3.4; fixed 1.3.4 (osv)
- npm `@duckdb/node-api`: affected \>= 1.3.3, \< 1.3.4-alpha.27; fixed 1.3.4-alpha.27 (osv)
- npm `@duckdb/node-bindings`: affected \>= 1.3.3, \< 1.3.4-alpha.27; fixed 1.3.4-alpha.27 (osv)
- npm `@duckdb/duckdb-wasm`: affected \>= 1.29.2, \< 1.30.0; fixed 1.30.0 (osv)
- duckdb-node: = 1.3.3; = 1.29.2 (cvelist)

## Mitigation

- Upgrade duckdb to 1.3.4 or later.
- Upgrade @duckdb/node-api to 1.3.4-alpha.27 or later.
- Upgrade @duckdb/node-bindings to 1.3.4-alpha.27 or later.
- Upgrade @duckdb/duckdb-wasm to 1.30.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-59037. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-59037.md
Affected: duckdb >= 1.3.3, < 1.3.4; @duckdb/node-api >= 1.3.3, < 1.3.4-alpha.27; @duckdb/node-bindings >= 1.3.3, < 1.3.4-alpha.27; @duckdb/duckdb-wasm >= 1.29.2, < 1.30.0
Fixed in: 1.3.4, 1.3.4-alpha.27, 1.30.0

Steps:
1. Search this machine and project for duckdb (npm), @duckdb/node-api (npm), @duckdb/node-bindings (npm), @duckdb/duckdb-wasm (npm), duckdb-node: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-59037 being exploited?

There is no confirmed exploitation: CVE-2025-59037 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-59037?

High: CVSS 8.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-59037?

duckdb \>= 1.3.3, \< 1.3.4; @duckdb/node-api \>= 1.3.3, \< 1.3.4-alpha.27; @duckdb/node-bindings \>= 1.3.3, \< 1.3.4-alpha.27; @duckdb/duckdb-wasm \>= 1.29.2, \< 1.30.0.

### Is there a fix for CVE-2025-59037?

Yes. Fixed in 1.3.4, 1.3.4-alpha.27, 1.30.0. Upgrade duckdb to 1.3.4 or later. Upgrade @duckdb/node-api to 1.3.4-alpha.27 or later. Upgrade @duckdb/node-bindings to 1.3.4-alpha.27 or later. Upgrade @duckdb/duckdb-wasm to 1.30.0 or later.

### How do I check if I'm affected by CVE-2025-59037?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/duckdb/duckdb-node/security/advisories/GHSA-w62p-hx95-gf2c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-59037>
- other: <https://github.com/duckdb/duckdb-node/releases/tag/v1.3.4>
- other: <https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised>
- other: <https://github.com/duckdb/duckdb-node>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-59037>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w62p-hx95-gf2c> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-59037> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-59037>
