MAL-2026-5638

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tw-fluid-type/MAL-2026-5638.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5638
Aliases
  • GHSA-53h7-3qgm-jr76
Published
2026-06-11T09:44:58Z
Modified
2026-06-12T20:01:57.806331968Z
Summary
Malicious code in tw-fluid-type (npm)
Details

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

Source: amazon-inspector (5c3bc3497d6c683f52210ca201500d27cf9e2bcccd976883be2ed85d17569b54)

The package advertises itself as a Tailwind CSS fluid-type plugin but ships src/utils/lib.min.js, which is loaded as a side effect when the package's main entry point is required. createClasses.js (reached from src/index.js) does const lib = require('./lib.min.js') and never uses the returned value — the only purpose of the require is to trigger the file's IIFE. lib.min.js caches global.r = require and global.m = module, then runs a ~4KB string through a custom Fisher-Yates-style deterministic shuffle (function YWG, seed 2540575) to decode JavaScript source, resolves the Function constructor via an obfuscated property lookup (YWG['constructor']), and invokes Function(...)(decoded_body) to execute the decoded code with full access to the cached require/module. A declarative CSS-utility plugin has no legitimate need to construct functions from shuffled-string blobs, cache require/module on the global object, or conceal its executable logic with a custom shuffle. Any consumer who imports this package executes the concealed payload at module load.

Source: ghsa-malware (634099d977e19e657b6ddd7a5f89bb5739f704a651ff40171609200a43c7682f)

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-53h7-3qgm-jr76",
            "import_time": "2026-06-11T11:47:48.915712339Z",
            "source": "ghsa-malware",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-06-11T09:44:59Z",
            "sha256": "634099d977e19e657b6ddd7a5f89bb5739f704a651ff40171609200a43c7682f"
        },
        {
            "id": "IN-MAL-2026-006194",
            "import_time": "2026-06-12T19:44:18.673497391Z",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector",
            "sha256": "074b165575731a745030859bc20d6376a9777c221b0c08b4abd7d5d8c1408adf",
            "modified_time": "2026-06-12T19:11:00Z"
        },
        {
            "id": "IN-MAL-2026-006193",
            "import_time": "2026-06-12T19:44:18.567819265Z",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-06-12T19:11:00Z",
            "sha256": "5c3bc3497d6c683f52210ca201500d27cf9e2bcccd976883be2ed85d17569b54"
        }
    ]
}
References
Credits

Affected packages

npm / tw-fluid-type

Package

Affected ranges

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

Affected versions

1.*
1.0.1

Database specific

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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tw-fluid-type/MAL-2026-5638.json"
indicators
{
    "evidence_files": [
        {
            "path": "src/utils/lib.min.js",
            "sha256": "7a9721b354e51e0b6dcf3d770d10de4ce207d0df8fb299652cb397893bf81690",
            "tlsh": "6d815dc87548fdc979c042b181cb919f2c6507e2987fb1c4888e86ea65422465eb9eff"
        }
    ],
    "domains": [
        "api.trongrid.io",
        "bsc-dataseed.binance.org",
        "fullnode.mainnet.aptoslabs.com",
        "bootstrap.pypa.io"
    ]
}