MAL-2026-18593Malicious code in react-contact-forms (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | react-contact-forms | * |
| npm | react-contact-forms | 0.5.2 |
{"schema_version":"1.7.4","id":"MAL-2026-18593","published":"2026-11-04T00:26:08Z","modified":"2026-11-04T07:39:26.717001103Z","aliases":["GHSA-9pj8-f47m-rgp8"],"summary":"Malicious code in react-contact-forms (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c9d186bd6a8ec4a6482a8e951bac94904fef98f09e8a8fff714dd4526ba93557)\nThe package publishes as 'react-contact-forms' but its package.json author is '@tailwindcss' and its repository points at tailwindlabs/tailwindcss-forms. The declared main src/index.js begins with eval(atob('<~50KB base64 blob>')) and then appends the verbatim tailwindcss-forms plugin source as cover. The decoded loader imports node:http, node:https, node:zlib, node:url, and node:child_process, reconstructs strings from an array, and spawns a child node process to execute code assembled at runtime. The decoded strings include Ethereum JSON-RPC method names (eth_blockNumber, eth_getBlockByNumber, eth_getTransactionCount), RPC hosts (publicnode.com, drpc.org, blockscout.com), an Etherscan-style txlist query (module=ac...action=txlist...address=...startblock=0&endblock=99999999&sort=desc), and hardcoded hex addresses (0x1eEf0849..., EDa15d87f6..., 4e51C73C84...) — the EtherHiding pattern where the next-stage payload is retrieved from attacker-controlled blockchain state and executed on the installer. The loader fires on every require()/import of the package, so any consumer that installs this package and loads it runs attacker-controlled code in their build or app runtime. The brand impersonation of @tailwindcss and the appended genuine tailwindcss-forms code are concealment for the prepended loader.\n\n## Source: ghsa-malware (cef380e496b73380cc92edc7ee7e209147af023401f34392f3b8cc556ad0a4af)\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","affected":[{"package":{"name":"react-contact-forms","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.5.2"],"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":{"evidence_files":[{"path":"src/index.js","sha256":"5b86d3e60cef86f314f5e279037bea95342b02f957ceda1c69f115066aeba24e","tlsh":"38433b76435e2addad2dcc00fbb9c5790305a4370036eacb896ebdac395e09f2046d67"},{"path":"package.json","sha256":"617d8d5fe83d18ce049a42ad84b314077d43813311413c75697b56277338af22","tlsh":"0521c726cd140e7306e0283592b90183b297a863895cbc593386c29c8f8d5bfe0fa09f"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9pj8-f47m-rgp8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-contact-forms/v/0.5.2"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-9pj8-f47m-rgp8","import_time":"2026-11-04T00:37:30.047525167Z","modified_time":"2026-11-04T00:26:09Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"cef380e496b73380cc92edc7ee7e209147af023401f34392f3b8cc556ad0a4af","source":"ghsa-malware"},{"id":"IN-MAL-2026-022542","import_time":"2026-11-04T07:37:35.619304794Z","modified_time":"2026-11-04T07:35:41Z","sha256":"c9d186bd6a8ec4a6482a8e951bac94904fef98f09e8a8fff714dd4526ba93557","source":"amazon-inspector","versions":["0.5.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0