mal-2026-4681
Vulnerability from ossf_malicious_packages
-= 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": [
{
"database_specific": {
"cwes": [
{
"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.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"domains": [
"api.trongrid.io",
"bsc-dataseed.binance.org",
"fullnode.mainnet.aptoslabs.com",
"bootstrap.pypa.io"
],
"evidence_files": [
{
"path": "src/index.js",
"sha256": "2eafde87ed00532e9de263396629a4612f960ba7788c8fb199d5e88dfac6dc87",
"tlsh": "6f021961209662a1034b115b0f4ed419f1aa89d75c1fb8a0f1fde1686f4824e8bb4eff"
}
],
"package_integrity": [
{
"filename": "tailwind-typography-stylecss-0.8.3.tgz",
"hashes": {
"sha1": "d801da4cd7866e1adb9595506eea0d327fcb0be3",
"sha512_sri": "sha512-36fs2n+nygI4YQDNce7yhaS2TTsX+IY/dheICPHymcFJuhdE6yyxO/q43B7l4jWgqPKF7H7YyepHGcLIycc1RQ=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "tailwind-typography-stylecss"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"0.8.3"
]
}
],
"aliases": [
"GHSA-p258-w6jm-c6ff"
],
"credits": [
{
"contact": [
"actran@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-004456",
"import_time": "2026-05-26T05:52:38.158974559Z",
"modified_time": "2026-05-24T03:14:39Z",
"sha256": "273b99f5721643d8ba8335fd73b46b4b32f81406d73f44e7a16552e16b8becd6",
"source": "amazon-inspector",
"versions": [
"0.8.3"
]
},
{
"id": "IN-MAL-2026-004457",
"import_time": "2026-05-26T05:52:38.250863679Z",
"modified_time": "2026-05-24T03:14:40Z",
"sha256": "cfd980bf98e04f3932c894ad9adf8597ef9e71371c6782b28a592387bcb35799",
"source": "amazon-inspector",
"versions": [
"0.8.3"
]
},
{
"id": "GHSA-p258-w6jm-c6ff",
"import_time": "2026-07-02T13:54:24.693248735Z",
"modified_time": "2026-07-02T13:07:52Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "8aa6efad6cdeb02fea7ab6c50d383cc04195a8a42a56c8bb6b6c158fb754a1cd",
"source": "ghsa-malware"
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (273b99f5721643d8ba8335fd73b46b4b32f81406d73f44e7a16552e16b8becd6)\nPackage name \u0027tailwind-typography-stylecss\u0027 impersonates the official \u0027@tailwindcss/typography\u0027 plugin; the shipped README is a verbatim copy of the official package\u0027s documentation, instructing users to install under the squatted name. The package\u0027s 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 \u0027constructor\u0027, then invokes Function.constructor on a decoded body string and calls the resulting function \u2014 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 \u2014 which normally has no closure access to module-scope identifiers \u2014 can still reach Node\u0027s 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\u0027s Node process.\n\n## Source: ghsa-malware (8aa6efad6cdeb02fea7ab6c50d383cc04195a8a42a56c8bb6b6c158fb754a1cd)\nAny 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.\n",
"id": "MAL-2026-4681",
"modified": "2026-07-02T13:56:15Z",
"published": "2026-05-24T03:14:39Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/tailwind-typography-stylecss/v/0.8.3"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-p258-w6jm-c6ff"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in tailwind-typography-stylecss (npm)"
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.