MAL-2026-4680

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-style-typography/MAL-2026-4680.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4680
Aliases
  • GHSA-pv74-wmjg-4gp8
Published
2026-05-22T18:41:38Z
Modified
2026-05-26T13:31:42.833979870Z
Summary
Malicious code in tailwind-style-typography (npm)
Details

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

Source: amazon-inspector (0818530f40672586168012538662486135f040526d0e4377f362b6bfe2f61bd2)

The package name impersonates the official @tailwindcss/typography plugin and replicates its README and source verbatim (including links to tailwindlabs/tailwindcss-typography), but src/index.js appends an obfuscated IIFE that runs whenever a consumer require()s the package. The trailing block uses a custom Fisher-Yates-style shuffle decoder (sfL) to reconstruct the strings 'require', 'module', and 'constructor' from a scrambled alphabet, resolves the Function constructor via String.constructor (dgC=sfL[EKc]), builds a function from a decoded payload (xBg=dgC(Apa, sfL(joW))), and immediately invokes it with a second decoded blob (Tgw(2509)). This is eval-of-opaque-string at module load time, hidden behind a custom decoder specifically designed to defeat static review. Any project that adopts this 'plugin' executes attacker-controlled JavaScript inside its build process, with full access to the developer's environment, source tree, and any credentials reachable from the build host. The combination of (a) deliberate name impersonation of a top-tier Tailwind package, (b) verbatim cover-story README/code, and (c) injected obfuscated Function-constructor execution leaves no benign interpretation.

Source: ghsa-malware (6be3309e5c75c7b9384af322a3177e1264bb20d7d63a49ba2d450d5ca4cf7901)

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": "0818530f40672586168012538662486135f040526d0e4377f362b6bfe2f61bd2",
            "modified_time": "2026-05-22T18:41:38Z",
            "id": "IN-MAL-2026-004245",
            "import_time": "2026-05-26T05:52:13.577415171Z",
            "versions": [
                "0.5.8"
            ],
            "source": "amazon-inspector"
        },
        {
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-05-26T09:28:38Z",
            "id": "GHSA-pv74-wmjg-4gp8",
            "sha256": "6be3309e5c75c7b9384af322a3177e1264bb20d7d63a49ba2d450d5ca4cf7901",
            "import_time": "2026-05-26T13:21:46.734777434Z",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / tailwind-style-typography

Package

Name
tailwind-style-typography
View open source insights on deps.dev
Purl
pkg:npm/tailwind-style-typography

Affected ranges

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

Affected versions

0.*
0.5.8

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-style-typography/MAL-2026-4680.json"
cwes
[
    {
        "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."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha1": "9ea6b0b99e3e9e070657529eeabf7943192e3877",
                "sha512_sri": "sha512-v97wZafYZhihW6RZpQ9iy+dNwEs7oCLmOllOzvysrToq1oIskRlNgMLvZrr8L2VJy7F3io7JupzyRN9+GVDvtw=="
            },
            "filename": "tailwind-style-typography-0.5.8.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "src/index.js",
            "sha256": "2eafde87ed00532e9de263396629a4612f960ba7788c8fb199d5e88dfac6dc87",
            "tlsh": "6f021961209662a1034b115b0f4ed419f1aa89d75c1fb8a0f1fde1686f4824e8bb4eff"
        }
    ]
}