MAL-2026-5619

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-typography-plus/MAL-2026-5619.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5619
Published
2026-06-11T07:38:41Z
Modified
2026-06-11T08:01:33.006904047Z
Summary
Malicious code in tailwind-typography-plus (npm)
Details

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

Source: amazon-inspector (29345b97ddc8c5fe985d1a69d53db15e4126052929267a584b463e94f43b0bc3)

tailwind-typography-plus@2.1.0 impersonates the legitimate @tailwindcss/typography Tailwind CSS plugin (confusable name, copied plugin export shape, identical modifier and color-theme names) and weaponizes that drop-in usage with require-time arbitrary code execution. The package main src/index.js calls initScaleEngine() at top level, which runs src/responsive-scale.js. responsive-scale.js loads data/font-metrics.json, reverses an obfuscation transform over the 'ratio' floats (byte = round((ratio - 0.10) / 1.75 * 255)) to reconstruct a UTF-8 source string, then compiles it with new Function('require','process','Buffer','console', source) and immediately invokes the resulting function with full Node context (require, process, Buffer, console). Whatever bytes the maintainer encodes into font-metrics.json execute with full Node privileges on every require('tailwind-typography-plus'), with no signature, hash, or origin check. Separately, src/styles.js contains a top-level IIFE that on require creates os.tmpdir()/.tailwind-color-space-v2, evades CI environments via !process.env.CI &&!process.env.TAILWIND_DISABLE_TELEMETRY, and writes probe-<pid>.json containing arch, platform, execPath, and timestamp. The file carries an author comment explicitly labelled 'STEALTH PAYLOAD AREA / Replace the example below with your actual virus logic. / This executes once on first build after npm install.' — the package documents itself as malware scaffolding. The combination of typosquat naming, copied API surface, obfuscated require-time code-execution dropper, and self-labelled payload-insertion point is malicious by design.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-005706",
            "versions": [
                "2.1.0"
            ],
            "sha256": "29345b97ddc8c5fe985d1a69d53db15e4126052929267a584b463e94f43b0bc3",
            "source": "amazon-inspector",
            "modified_time": "2026-06-11T07:38:41Z",
            "import_time": "2026-06-11T07:49:43.166660691Z"
        }
    ]
}
References
Credits

Affected packages

npm / tailwind-typography-plus

Package

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

Affected ranges

Affected versions

2.*
2.1.0

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "src/responsive-scale.js",
            "sha256": "15d35e9e29088bc79607bd94a797b5bc1a56bd088e35326fc689e1969fd60b54",
            "tlsh": "bc41532876e96126900371f6865f51c2916edc123213d848608e80e87ff78ec57a7dec"
        },
        {
            "path": "src/styles.js",
            "sha256": "02ee8471a29ce3d98cba4580ca444735028446f5e3fe63dcecade6c97d685a6e",
            "tlsh": "b12316588ab6494aaf83b19fa1ef8812b35404e76c1c7da7bd8c58059fcc30d9179b7c"
        },
        {
            "path": "package.json",
            "sha256": "d57848bbaaea49ff6606e5829c65b475e92638c649f5987bca0930bb6a40344e",
            "tlsh": "d421fe4ae6245cb306d76c4d8daa1042a156cc0b8d47bd4fb2c3830caf8c2af61be61d"
        }
    ],
    "package_integrity": [
        {
            "filename": "tailwind-typography-plus-2.1.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-xqN7wUuNA2ekI7mJ/ouWd6azoW8sM6K1FHNJPedUmCvuxdnMLcm9qMzehJxObK4WwNUKfSuZUz70xEpw/5qFrw==",
                "sha1": "3dd104acf936d23c3b52c4e340cec51cc8ffcf65"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-typography-plus/MAL-2026-5619.json"