Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in tailwind-typography-stylecss (npm)

0
Critical
Published: 05/24/2026 (05/24/2026, 03:14:39 UTC)
Source: GCVE Database
Product: tailwind-typography-stylecss

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (273b99f5721643d8ba8335fd73b46b4b32f81406d73f44e7a16552e16b8becd6) Package name 'tailwind-typography-stylecss' impersonates the official '@tailwindcss/typography' plugin; the shipped README is a verbatim copy of the official package's documentation, instructing users to install under the squatted name. The package's main entry src/index.js contains the legitimate plugin source followed by an appended obfuscated payload that fires on every require()/import. The payload uses a bespoke shuffle-cipher decoder (function sfL with constants n=2667686, modulus 4289487) to recover the string 'constructor', then invokes Function.constructor on a decoded body string and calls the resulting function — a classic dynamic-eval-of-opaque-blob construction. Before invocation, the code explicitly assigns require and module onto the global object (global[_$_1e42[0]]=require; global[_$_1e42[2]]=module) so that the dynamically constructed Function — which normally has no closure access to module-scope identifiers — can still reach Node's require and module APIs. The combination of name impersonation, verbatim-legitimate-source-plus-appended-payload, custom obfuscator, Function-constructor execution, and deliberate re-exposure of require/module on globals leaves no benign interpretation. Any project that follows the README and require()s this package executes attacker-controlled code in the consumer's Node process. ## Source: ghsa-malware (8aa6efad6cdeb02fea7ab6c50d383cc04195a8a42a56c8bb6b6c158fb754a1cd) 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

npmghsa
tailwind-typography-stylecss
Affected versions
=0.8.3

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

AILast updated: 07/11/2026, 12:34:21 UTC

Technical Analysis

The 'tailwind-typography-stylecss' npm package (version 0.8.3) impersonates the official '@tailwindcss/typography' plugin by copying its README and code, then appending an obfuscated payload. This payload dynamically decodes and executes a malicious script using Function.constructor, deliberately exposing Node.js require and module objects on the global scope to enable this execution. This design ensures that importing the package results in running attacker-controlled code within the consumer's Node.js process, representing a clear malicious code execution threat.

Potential Impact

Any system that installs or runs this package is at risk of full compromise due to execution of attacker-controlled code. This can lead to unauthorized access, data theft, and persistence of malicious software. Secrets and keys stored on the compromised system should be considered exposed and require immediate rotation. Removing the package alone may not fully remediate the compromise as the attacker may have established additional footholds.

Mitigation Recommendations

Remove the 'tailwind-typography-stylecss' package immediately from all affected systems. Rotate all secrets and keys that were stored or accessible on the compromised systems from a secure, unaffected environment. Due to the potential for full system compromise, conduct a thorough investigation and consider rebuilding affected systems. There is no official patch or fix for this malicious package; prevention relies on avoiding installation of this package and verifying package authenticity before use.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-4681
Osv Schema Version
1.7.4
Aliases
["GHSA-p258-w6jm-c6ff"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a46ece227e9c79719440e07

Added to database: 07/02/2026, 22:57:38 UTC

Last enriched: 07/11/2026, 12:34:21 UTC

Last updated: 07/31/2026, 15:05:21 UTC

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses