mal-2026-5394
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (2acee7592879b9eab377fb8e97a1fa2949b298f4418d37fb963e157971638c90)
@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.
Source: ghsa-malware (8d81e63498460519da77090ce672f258da8fc5ebc304a472b695b0b5475a079e)
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.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"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"
},
{
"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"
},
{
"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": {
"domains": [
"api.github.com"
],
"evidence_files": [
{
"path": "index.js",
"sha256": "7bc2c525efe4593023441e42b9ea4dcee7f143f0bdc16e1efcea19896d789a0a",
"tlsh": "b13364026f52511b4377b33d984f950efb769436422ac8c8b49c94902fb4964cabbef9"
},
{
"path": "package.json",
"sha256": "5dc9a67f91e2a531acff0f56ca24090a35f896cb43c984588a8b644fcc6212ec",
"tlsh": "c9115b60cd34dd630ec51ad5a9680615b1219d1b9c48fc5db3d2430e4f4e0af21fd76d"
}
],
"package_integrity": [
{
"filename": "nodesql-1.0.7.tgz",
"hashes": {
"sha1": "66f899d373a5dbd5184f47fa8fdcd6f9e9718a1e",
"sha512_sri": "sha512-uzKfO+8uCQ3kZ1aAoJ5IY9dSdK5mj7VWQk1moCljLjO5vMs+vdU/dODDbnGWomeMejVe5rGzBdGsj7LBaJU22A=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "@sql-access/nodesql"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"1.0.7",
"1.1.7",
"1.1.8",
"1.0.5",
"1.1.6",
"1.1.3",
"1.1.4",
"1.1.2",
"1.0.9",
"1.1.5",
"1.0.8",
"1.1.1",
"1.0.6"
]
}
],
"aliases": [
"GHSA-qpx3-6fx4-259q"
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-004945",
"import_time": "2026-06-09T16:59:43.670350972Z",
"modified_time": "2026-06-09T15:58:52Z",
"sha256": "f4dbd816086a092ae99c8590ee3fc887ba415dd8e9d409ca4e299da61d763b1c",
"source": "amazon-inspector",
"versions": [
"1.0.7"
]
},
{
"id": "IN-MAL-2026-006168",
"import_time": "2026-06-12T19:44:15.598295569Z",
"modified_time": "2026-06-12T19:10:26Z",
"sha256": "b8cf7f98fe5447a5b707741a81dd340ffccd2df9377b62f2fb306de733725a33",
"source": "amazon-inspector",
"versions": [
"1.1.7"
]
},
{
"id": "IN-MAL-2026-006169",
"import_time": "2026-06-12T19:44:15.68378288Z",
"modified_time": "2026-06-12T19:10:28Z",
"sha256": "cfff52070840ea016681c4206984dcb3e1df247ca2c5d52c6ab49bb4e243f88c",
"source": "amazon-inspector",
"versions": [
"1.1.8"
]
},
{
"id": "IN-MAL-2026-006158",
"import_time": "2026-06-12T19:44:14.58653859Z",
"modified_time": "2026-06-12T19:10:10Z",
"sha256": "1e0eb70ff415292f114fb190467133813c9d0b2417af884521bdb23614b90926",
"source": "amazon-inspector",
"versions": [
"1.0.5"
]
},
{
"id": "IN-MAL-2026-006167",
"import_time": "2026-06-12T19:44:15.497903501Z",
"modified_time": "2026-06-12T19:10:25Z",
"sha256": "20b987da405bfbe3c2c93161dc6c02a62305d5a431b0aa3da8938a8c240bccaf",
"source": "amazon-inspector",
"versions": [
"1.1.6"
]
},
{
"id": "IN-MAL-2026-006164",
"import_time": "2026-06-12T19:44:15.174764979Z",
"modified_time": "2026-06-12T19:10:20Z",
"sha256": "2acee7592879b9eab377fb8e97a1fa2949b298f4418d37fb963e157971638c90",
"source": "amazon-inspector",
"versions": [
"1.1.3"
]
},
{
"id": "IN-MAL-2026-006165",
"import_time": "2026-06-12T19:44:15.295786845Z",
"modified_time": "2026-06-12T19:10:21Z",
"sha256": "3ad99e7ce984a22ae8c5a70164c36f3a500ae34a746ccf46b63ce957d461112b",
"source": "amazon-inspector",
"versions": [
"1.1.4"
]
},
{
"id": "IN-MAL-2026-006163",
"import_time": "2026-06-12T19:44:15.071984693Z",
"modified_time": "2026-06-12T19:10:18Z",
"sha256": "63aaaaa68b89ff534354ad10f3bd8840721382edea1abfbeba05eec3448c8b91",
"source": "amazon-inspector",
"versions": [
"1.1.2"
]
},
{
"id": "IN-MAL-2026-006161",
"import_time": "2026-06-12T19:44:14.894832591Z",
"modified_time": "2026-06-12T19:10:15Z",
"sha256": "bb353b4032752e470e7d41a2f51e04e5dfd46a29ffe3dffa39e2bd74aaebe57c",
"source": "amazon-inspector",
"versions": [
"1.0.9"
]
},
{
"id": "IN-MAL-2026-006166",
"import_time": "2026-06-12T19:44:15.396356348Z",
"modified_time": "2026-06-12T19:10:23Z",
"sha256": "c2f185c934798ee8c8904061fc553bd590b71c143708ea435290a12b1a87c9a0",
"source": "amazon-inspector",
"versions": [
"1.1.5"
]
},
{
"id": "IN-MAL-2026-006160",
"import_time": "2026-06-12T19:44:14.764205846Z",
"modified_time": "2026-06-12T19:10:13Z",
"sha256": "1635484625308d2a7d107051ec98744dd454b06c78b60e1e5ab968f64d3e1f7f",
"source": "amazon-inspector",
"versions": [
"1.0.8"
]
},
{
"id": "IN-MAL-2026-006162",
"import_time": "2026-06-12T19:44:14.989447126Z",
"modified_time": "2026-06-12T19:10:16Z",
"sha256": "89b69c7c03ae717b22af9329ae1aeff3bae2df26905cb516661d1c3b865b7564",
"source": "amazon-inspector",
"versions": [
"1.1.1"
]
},
{
"id": "IN-MAL-2026-006170",
"import_time": "2026-06-12T19:44:15.792903872Z",
"modified_time": "2026-06-12T19:10:29Z",
"sha256": "91394fe0dfad64df26daae84b5f23694ad5bd8d29ae0fd90d7476e116d21079a",
"source": "amazon-inspector",
"versions": [
"1.1.8"
]
},
{
"id": "IN-MAL-2026-006159",
"import_time": "2026-06-12T19:44:14.675299487Z",
"modified_time": "2026-06-12T19:10:11Z",
"sha256": "9d4b9920b91f904fd4721c7738968a410e3a3cac7160a66c24fd5bdbe7240b9c",
"source": "amazon-inspector",
"versions": [
"1.0.6"
]
},
{
"id": "GHSA-qpx3-6fx4-259q",
"import_time": "2026-07-03T16:45:59.768048002Z",
"modified_time": "2026-07-03T15:59:09Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "8d81e63498460519da77090ce672f258da8fc5ebc304a472b695b0b5475a079e",
"source": "ghsa-malware"
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2acee7592879b9eab377fb8e97a1fa2949b298f4418d37fb963e157971638c90)\n@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 \u0027bare-stream\u0027 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(\u0027@sqlite-node/createsql\u0027);`. As a result, any consumer that does `require(\u0027@sql-access/nodesql\u0027)` 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\u0027s 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\u0027s 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.\n\n## Source: ghsa-malware (8d81e63498460519da77090ce672f258da8fc5ebc304a472b695b0b5475a079e)\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",
"id": "MAL-2026-5394",
"modified": "2026-07-03T16:47:39Z",
"published": "2026-06-09T15:58:52Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.0.7"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.7"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.8"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.0.5"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.6"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.3"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.4"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.2"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.0.9"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.5"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.0.8"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.1.1"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/@sql-access/nodesql/v/1.0.6"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-qpx3-6fx4-259q"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in @sql-access/nodesql (npm)"
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.