MAL-2026-6492

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hexo-shoka-swiper/MAL-2026-6492.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6492
Aliases
  • GHSA-vwrj-pprq-gjvq
Published
2026-06-26T00:28:59Z
Modified
2026-06-26T12:26:00.662540550Z
Summary
Malicious code in hexo-shoka-swiper (npm)
Details

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

Source: amazon-inspector (62f045b55721408d94a92f5d65b58d69c98d3dc29d5f4f9327fb8edb4f85eaad)

The package ships a binding.gyp whose sources field uses GYP command-expansion syntax (npm install hexo-shoka-swiper causes the embedded shell command to execute on the installer's machine. The package's nominal purpose is a Hexo theme Swiper integration — a pure JavaScript front-end concern with no legitimate need to build a native addon or to evaluate shell at install. The binding.gyp here functions as a lifecycle-hook substitute for arbitrary install-time code execution rather than as a real native-build description.

Source: ghsa-malware (e8de7e493283d0ce9bd580619618dd4fcb9f1b6bc9d2f35c574b2e5bd21a986f)

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": [
        {
            "sha256": "62f045b55721408d94a92f5d65b58d69c98d3dc29d5f4f9327fb8edb4f85eaad",
            "import_time": "2026-06-26T00:59:25.663828355Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-26T00:28:59Z",
            "versions": [
                "0.1.10"
            ],
            "id": "IN-MAL-2026-007572"
        },
        {
            "sha256": "e8de7e493283d0ce9bd580619618dd4fcb9f1b6bc9d2f35c574b2e5bd21a986f",
            "id": "GHSA-vwrj-pprq-gjvq",
            "source": "ghsa-malware",
            "modified_time": "2026-06-26T10:19:53Z",
            "versions": [
                "0.1.10"
            ],
            "import_time": "2026-06-26T11:15:44.791432315Z"
        }
    ]
}
References
Credits

Affected packages

npm / hexo-shoka-swiper

Package

Affected ranges

Affected versions

0.*
0.1.10

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hexo-shoka-swiper/MAL-2026-6492.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "32d1bc728d8e504952083a6adc488c309a401c7df4dc8f47b382ce32e4aebe21",
            "tlsh": "48c08c3ca9380d1029d958285168d402a4b142a3494e2a81fade60284fa840b2898bad",
            "path": "binding.gyp"
        }
    ],
    "package_integrity": [
        {
            "filename": "hexo-shoka-swiper-0.1.10.tgz",
            "hashes": {
                "sha1": "cb78d0dca573f99a22b41ca01e99853a6162d5d5",
                "sha512_sri": "sha512-uiFPoEeJinMs1Rv4rBLjWSgUs7+vYBqKUNDy79HT8IraVjY9MCx8xtxp1zmaV2yq9rSEjDVA+nmWmc91qqSsfg=="
            }
        }
    ]
}