MAL-2026-5394

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@sql-access/nodesql/MAL-2026-5394.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5394
Published
2026-06-09T15:58:52Z
Modified
2026-06-12T20:01:46.055857269Z
Summary
Malicious code in @sql-access/nodesql (npm)
Details

-= 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.7"
            ],
            "id": "IN-MAL-2026-004945",
            "modified_time": "2026-06-09T15:58:52Z",
            "import_time": "2026-06-09T16:59:43.670350972Z",
            "sha256": "f4dbd816086a092ae99c8590ee3fc887ba415dd8e9d409ca4e299da61d763b1c",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.7"
            ],
            "import_time": "2026-06-12T19:44:15.598295569Z",
            "modified_time": "2026-06-12T19:10:26Z",
            "id": "IN-MAL-2026-006168",
            "sha256": "b8cf7f98fe5447a5b707741a81dd340ffccd2df9377b62f2fb306de733725a33",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.8"
            ],
            "import_time": "2026-06-12T19:44:15.68378288Z",
            "modified_time": "2026-06-12T19:10:28Z",
            "id": "IN-MAL-2026-006169",
            "sha256": "cfff52070840ea016681c4206984dcb3e1df247ca2c5d52c6ab49bb4e243f88c",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.5"
            ],
            "import_time": "2026-06-12T19:44:14.58653859Z",
            "modified_time": "2026-06-12T19:10:10Z",
            "id": "IN-MAL-2026-006158",
            "sha256": "1e0eb70ff415292f114fb190467133813c9d0b2417af884521bdb23614b90926",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.6"
            ],
            "import_time": "2026-06-12T19:44:15.497903501Z",
            "modified_time": "2026-06-12T19:10:25Z",
            "id": "IN-MAL-2026-006167",
            "sha256": "20b987da405bfbe3c2c93161dc6c02a62305d5a431b0aa3da8938a8c240bccaf",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.3"
            ],
            "import_time": "2026-06-12T19:44:15.174764979Z",
            "modified_time": "2026-06-12T19:10:20Z",
            "id": "IN-MAL-2026-006164",
            "sha256": "2acee7592879b9eab377fb8e97a1fa2949b298f4418d37fb963e157971638c90",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.4"
            ],
            "import_time": "2026-06-12T19:44:15.295786845Z",
            "modified_time": "2026-06-12T19:10:21Z",
            "id": "IN-MAL-2026-006165",
            "sha256": "3ad99e7ce984a22ae8c5a70164c36f3a500ae34a746ccf46b63ce957d461112b",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.2"
            ],
            "import_time": "2026-06-12T19:44:15.071984693Z",
            "modified_time": "2026-06-12T19:10:18Z",
            "id": "IN-MAL-2026-006163",
            "sha256": "63aaaaa68b89ff534354ad10f3bd8840721382edea1abfbeba05eec3448c8b91",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.9"
            ],
            "import_time": "2026-06-12T19:44:14.894832591Z",
            "modified_time": "2026-06-12T19:10:15Z",
            "id": "IN-MAL-2026-006161",
            "sha256": "bb353b4032752e470e7d41a2f51e04e5dfd46a29ffe3dffa39e2bd74aaebe57c",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.5"
            ],
            "import_time": "2026-06-12T19:44:15.396356348Z",
            "modified_time": "2026-06-12T19:10:23Z",
            "id": "IN-MAL-2026-006166",
            "sha256": "c2f185c934798ee8c8904061fc553bd590b71c143708ea435290a12b1a87c9a0",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.8"
            ],
            "import_time": "2026-06-12T19:44:14.764205846Z",
            "modified_time": "2026-06-12T19:10:13Z",
            "id": "IN-MAL-2026-006160",
            "sha256": "1635484625308d2a7d107051ec98744dd454b06c78b60e1e5ab968f64d3e1f7f",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.1"
            ],
            "import_time": "2026-06-12T19:44:14.989447126Z",
            "modified_time": "2026-06-12T19:10:16Z",
            "id": "IN-MAL-2026-006162",
            "sha256": "89b69c7c03ae717b22af9329ae1aeff3bae2df26905cb516661d1c3b865b7564",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.1.8"
            ],
            "import_time": "2026-06-12T19:44:15.792903872Z",
            "modified_time": "2026-06-12T19:10:29Z",
            "id": "IN-MAL-2026-006170",
            "sha256": "91394fe0dfad64df26daae84b5f23694ad5bd8d29ae0fd90d7476e116d21079a",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.6"
            ],
            "import_time": "2026-06-12T19:44:14.675299487Z",
            "modified_time": "2026-06-12T19:10:11Z",
            "id": "IN-MAL-2026-006159",
            "sha256": "9d4b9920b91f904fd4721c7738968a410e3a3cac7160a66c24fd5bdbe7240b9c",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @sql-access/nodesql

Package

Name
@sql-access/nodesql
View open source insights on deps.dev
Purl
pkg:npm/%40sql-access%2Fnodesql

Affected ranges

Affected versions

1.*
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@sql-access/nodesql/MAL-2026-5394.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "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"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "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"
    }
]
indicators
{
    "domains": [
        "api.github.com"
    ],
    "package_integrity": [
        {
            "filename": "nodesql-1.0.7.tgz",
            "hashes": {
                "sha1": "66f899d373a5dbd5184f47fa8fdcd6f9e9718a1e",
                "sha512_sri": "sha512-uzKfO+8uCQ3kZ1aAoJ5IY9dSdK5mj7VWQk1moCljLjO5vMs+vdU/dODDbnGWomeMejVe5rGzBdGsj7LBaJU22A=="
            }
        }
    ],
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "7bc2c525efe4593023441e42b9ea4dcee7f143f0bdc16e1efcea19896d789a0a",
            "tlsh": "b13364026f52511b4377b33d984f950efb769436422ac8c8b49c94902fb4964cabbef9"
        },
        {
            "path": "package.json",
            "sha256": "5dc9a67f91e2a531acff0f56ca24090a35f896cb43c984588a8b644fcc6212ec",
            "tlsh": "c9115b60cd34dd630ec51ad5a9680615b1219d1b9c48fc5db3d2430e4f4e0af21fd76d"
        }
    ]
}