MAL-2026-3178

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@cap-js/sqlite/MAL-2026-3178.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-3178
Aliases
  • GHSA-2h7r-x9v2-q52f
Published
2026-04-29T10:00:00Z
Modified
2026-05-01T00:18:09Z
Summary
Malicious code in @cap-js/sqlite (npm)
Details

Supply chain compromise of legitimate SAP packages published by threat actor "cloudmtabot@gmail.com" impersonating SAP toolchain maintainers. All four compromised packages share the same fingerprint: setup.mjs (4.4 KB) and execution.js (11.1 MB) bundled in the tarball, with a preinstall hook of "node setup.mjs". Notably, setup.mjs is explicitly excluded from the package.json 'files' allowlist yet is still shipped in the tarball — a manifest evasion technique intended to hide the malicious file from allowlist inspection while still executing it on install. execution.js (11.1 MB) is anomalously large for these packages and is consistent with an embedded payload or exfiltration binary. Packages were published 2026-04-29T09:55Z.

@cap-js/sqlite is the SQLite adapter for SAP CAP applications, commonly used in local development and CI test environments where environment secrets and developer credentials are accessible.


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (3e351cbd6028a7ab27e64e0848a152455489adaca627dd7a97b01cad0709dd69)

The package @cap-js/sqlite was found to contain malicious code.

Source: ghsa-malware (972ce7f52a5015e0a153236e8f2f81b42607dc3e78106372e36ac33feb652914)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "GHSA-2h7r-x9v2-q52f",
            "import_time": "2026-04-30T16:46:55.45320453Z",
            "modified_time": "2026-04-30T16:37:47Z",
            "sha256": "972ce7f52a5015e0a153236e8f2f81b42607dc3e78106372e36ac33feb652914",
            "source": "ghsa-malware",
            "versions": [
                "2.2.2"
            ]
        },
        {
            "import_time": "2026-04-30T22:23:10.997315615Z",
            "modified_time": "2026-04-30T21:59:18Z",
            "sha256": "3e351cbd6028a7ab27e64e0848a152455489adaca627dd7a97b01cad0709dd69",
            "source": "amazon-inspector",
            "versions": [
                "2.2.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @cap-js/sqlite

Package

Name
@cap-js/sqlite
View open source insights on deps.dev
Purl
pkg:npm/%40cap-js/sqlite

Affected ranges

Affected versions

2.*
2.2.2

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@cap-js/sqlite/MAL-2026-3178.json"