MAL-2026-5935

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tw-theme-kit/MAL-2026-5935.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5935
Aliases
  • GHSA-g2wq-vjqj-xc3h
Published
2026-06-16T22:21:38Z
Modified
2026-08-31T18:31:26Z
Summary
Malicious code in tw-theme-kit (npm)
Details

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

Source: amazon-inspector (0144b9ea6743e481e49885f6375a8aa990e9a20bfc5da1148b7df59a9370736c)

The published entrypoints dist/index.cjs and dist/runtime.cjs contain an injected IIFE that assigns global.r = require and global.m = module, tags the host with campaign id 'A6-Orion-271', uses a string-shuffle helper to reconstruct the identifier 'constructor', then invokes Function() on a deshuffled obfuscated blob and immediately calls the resulting function. Any consumer that does require('tw-theme-kit') or import 'tw-theme-kit/runtime' triggers attacker-controlled code at load time with full Node capabilities (fs, child_process, net) exposed via the globals. This behavior is unrelated to the package's stated purpose (a Tailwind theme plugin) and matches the fingerprint of the 'Orion' obfuscated-loader campaign. The.mjs builds and source-maps embed the same obfuscated literal, so no entrypoint is safe.

Source: ghsa-malware (de70cc0bc70c11c34e04c2cdaea11b8e0173befc31c43e2921933c180736ffa3)

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": "IN-MAL-2026-006848",
            "import_time": "2026-06-16T23:03:43.703368387Z",
            "modified_time": "2026-06-16T22:21:38Z",
            "sha256": "0144b9ea6743e481e49885f6375a8aa990e9a20bfc5da1148b7df59a9370736c",
            "source": "amazon-inspector",
            "versions": [
                "1.1.0"
            ]
        },
        {
            "id": "GHSA-g2wq-vjqj-xc3h",
            "import_time": "2026-08-25T17:25:28.256918326Z",
            "modified_time": "2026-08-25T16:29:19Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "de70cc0bc70c11c34e04c2cdaea11b8e0173befc31c43e2921933c180736ffa3",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-019203",
            "import_time": "2026-08-31T18:22:24.310087725Z",
            "modified_time": "2026-08-31T17:48:12Z",
            "sha256": "bd8330fd278af2f3c1d0ac6970065a3779168c193f01460ac24bdbb7d6e7f29e",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / tw-theme-kit

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.1
1.1.0

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "dist/index.cjs",
            "sha256": "ce9e98ae597db38c523eb0141be40b29d462e22edffad6be38b562193ff278e6",
            "tlsh": "cc421985b7fa2623007394ed412b8016faa9b1421419f748f9ddd3e80f8a21ec9f57e9"
        },
        {
            "path": "dist/runtime.cjs",
            "sha256": "eea38ba44c83cf0fc821802e00dec564f35ba062ce3817517b7c4af41bc4510f",
            "tlsh": "83e13cc43bf97766217200a5121790067594b1838429f58cedeee3e90fda21f89f8bf9"
        }
    ],
    "package_integrity": [
        {
            "filename": "tw-theme-kit-1.1.0.tgz",
            "hashes": {
                "sha1": "190b3a8c76e72928ba27eaeec223ee1dc79563f5",
                "sha512_sri": "sha512-wW+MgsdKOTDDfF3ldqEOFH84JJ4fxSXw6bjS6NXhtMTeXkIzuoGsXXKj2vvF58HTQCTQTxQASrYNLF08svZ0+A=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tw-theme-kit/MAL-2026-5935.json"