Malicious code in tailwind-typography-plus (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (29345b97ddc8c5fe985d1a69d53db15e4126052929267a584b463e94f43b0bc3) [email protected] 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. ## Source: ghsa-malware (c7c8d8dc7e81d4a27f46d92be719778dbd259d92a62e77e19c7242335c2d2d73) 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.
AI Analysis
Technical Summary
[email protected] is a malicious npm package designed to impersonate the legitimate Tailwind CSS typography plugin by using a confusable name and copying the plugin's API surface. Its main module executes obfuscated code at require-time by decoding a JSON file into a UTF-8 source string, compiling it into a function, and invoking it with full Node.js context, enabling arbitrary code execution. Additionally, it creates files in the system temporary directory containing system metadata and includes a clearly marked payload insertion area for malware logic. This behavior indicates intentional design for malicious use, leading to full compromise of any system that installs or runs this package.
Potential Impact
Any system that installs or runs [email protected] is fully compromised due to arbitrary code execution with full Node.js privileges. This can lead to unauthorized access, data theft, persistence of malware, and potential lateral movement. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately. Removal of the package alone does not guarantee eradication of all malicious artifacts or backdoors.
Mitigation Recommendations
There is no official patch or fix for this malicious package. The recommended mitigation is to immediately remove [email protected] from all systems. Rotate all secrets, keys, and credentials that were stored or used on affected machines from a secure, uncompromised environment. Conduct a thorough investigation and remediation of the affected systems to ensure no persistent malware remains. Avoid installing packages with confusable names and verify package authenticity before use.
Malicious code in tailwind-typography-plus (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (29345b97ddc8c5fe985d1a69d53db15e4126052929267a584b463e94f43b0bc3) [email protected] 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. ## Source: ghsa-malware (c7c8d8dc7e81d4a27f46d92be719778dbd259d92a62e77e19c7242335c2d2d73) 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
[email protected] is a malicious npm package designed to impersonate the legitimate Tailwind CSS typography plugin by using a confusable name and copying the plugin's API surface. Its main module executes obfuscated code at require-time by decoding a JSON file into a UTF-8 source string, compiling it into a function, and invoking it with full Node.js context, enabling arbitrary code execution. Additionally, it creates files in the system temporary directory containing system metadata and includes a clearly marked payload insertion area for malware logic. This behavior indicates intentional design for malicious use, leading to full compromise of any system that installs or runs this package.
Potential Impact
Any system that installs or runs [email protected] is fully compromised due to arbitrary code execution with full Node.js privileges. This can lead to unauthorized access, data theft, persistence of malware, and potential lateral movement. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately. Removal of the package alone does not guarantee eradication of all malicious artifacts or backdoors.
Mitigation Recommendations
There is no official patch or fix for this malicious package. The recommended mitigation is to immediately remove [email protected] from all systems. Rotate all secrets, keys, and credentials that were stored or used on affected machines from a secure, uncompromised environment. Conduct a thorough investigation and remediation of the affected systems to ensure no persistent malware remains. Avoid installing packages with confusable names and verify package authenticity before use.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5619
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-j9jx-c8pr-c3gr"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341227e9c797195f7c89
Added to database: 07/06/2026, 23:02:42 UTC
Last enriched: 07/07/2026, 00:36:38 UTC
Last updated: 07/29/2026, 16:32:39 UTC
Views: 19
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.