MAL-2026-13714Malicious code in @sqlite-labs/nodesql (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @sqlite-labs/nodesql | * |
| npm | @sqlite-labs/nodesql | 1.0.3 |
| npm | @sqlite-labs/nodesql | 1.0.4 |
| npm | @sqlite-labs/nodesql | 1.0.5 |
| npm | @sqlite-labs/nodesql | 1.0.6 |
| npm | @sqlite-labs/nodesql | 1.0.7 |
{"schema_version":"1.7.4","id":"MAL-2026-13714","published":"2026-08-10T20:30:54Z","modified":"2026-08-11T12:24:54.059778486Z","aliases":["GHSA-86f7-qh62-pq7c"],"summary":"Malicious code in @sqlite-labs/nodesql (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (77614b62a827121762f2140a37b26e96408f18c0ccd122069c2ae311918541ef)\n@sqlite-labs/nodesql@1.0.5 ships an index.js that is a copy of the feross/buffer library with a single injected top-of-file statement `var ins = require('@sqlite-labs/createsql');`. The imported binding `ins` is never referenced anywhere else in the module; its sole effect is to trigger execution of the sibling package `@sqlite-labs/createsql` whenever a consumer performs `require('@sqlite-labs/nodesql')` or `import`s it. Package metadata reinforces the lure shape: description is empty, keywords are the generic `node`/`sql`, homepage points at `github.com/guilderguzman/sql-link`, and the README is titled `bare-stream` and instructs the reader to `npm i @sql-access/nods` — a different scope and name than the published package. The scope `@sqlite-labs` resembles established SQLite-ecosystem names but is not affiliated with them. Installing and importing this package causes attacker-controlled code in `@sqlite-labs/createsql` to run in the consumer's process at load time; no lifecycle hook is required.\n\n## Source: ghsa-malware (f65b25d073ba8ebd2e2939ef74c84104486404c6b973550898fb5a54b97be63d)\nAny 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.\n","affected":[{"package":{"name":"@sqlite-labs/nodesql","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.7","1.0.6","1.0.3","1.0.4","1.0.5"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"cbe8a6c23357749fd0be25dc02f4104a394a555a5489c5e800d0a8bc2a33fd3a","tlsh":"0f3364026f52511b4377b33d984f950efb769436422ac8c8b49c94902fb4964cabbef9"},{"path":"package.json","sha256":"3180d9cbad6d313325adddfee87a3f6bc9a6b9037f0302078f2ca69b87b07499","tlsh":"1d115b60cd34dda70ec42ad6a9680655b2219d1b9c48fc6d73d2430e8f4e0af22f976d"}],"package_integrity":[{"filename":"nodesql-1.0.7.tgz","hashes":{"sha1":"f92bc577083dd8eee2a7996f7fa74410d854b9df","sha512_sri":"sha512-2d3Qea5kFej1G0rgxeKJcxZ5CSxyu2toKbMqM8PeeNgMtonZxosG+I0avPMFoctIPDsoFxW0tCGOunLDmRptvA=="}}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-86f7-qh62-pq7c"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sqlite-labs/nodesql/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sqlite-labs/nodesql/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sqlite-labs/nodesql/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sqlite-labs/nodesql/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sqlite-labs/nodesql/v/1.0.5"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-86f7-qh62-pq7c","import_time":"2026-08-11T00:38:01.337072031Z","modified_time":"2026-08-10T20:30:55Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"f65b25d073ba8ebd2e2939ef74c84104486404c6b973550898fb5a54b97be63d","source":"ghsa-malware"},{"id":"IN-MAL-2026-017304","import_time":"2026-08-11T12:23:06.576492665Z","modified_time":"2026-08-11T12:00:59Z","sha256":"de2e90e5f53e0747f7ddbbc4a39e5d0595f9f5343e3593dbeafb7951f7f61191","source":"amazon-inspector","versions":["1.0.7"]},{"id":"IN-MAL-2026-017309","import_time":"2026-08-11T12:23:07.134508719Z","modified_time":"2026-08-11T12:01:39Z","sha256":"e815c379da06a71d60ecd8f39de396cdb0b6d78aa51df05a81ab9fe3cc28f528","source":"amazon-inspector","versions":["1.0.6"]},{"id":"IN-MAL-2026-017302","import_time":"2026-08-11T12:23:06.246770002Z","modified_time":"2026-08-11T12:00:42Z","sha256":"2b5da519081f2852b81b99fc82876c1a3b53da532daf758d3bfaf599c86846fa","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-017301","import_time":"2026-08-11T12:23:06.118022088Z","modified_time":"2026-08-11T12:00:34Z","sha256":"5e563beeba1f240701f57d20593c63e9ffa745b1c610118bdc8f684574e3bff4","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-017303","import_time":"2026-08-11T12:23:06.48967623Z","modified_time":"2026-08-11T12:00:51Z","sha256":"77614b62a827121762f2140a37b26e96408f18c0ccd122069c2ae311918541ef","source":"amazon-inspector","versions":["1.0.5"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0