Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    MAL-2026-18593 (GHSA-9PJ8-F47M-RGP8)

    Vulnerability from ossf_malicious_packages – Published: 2026-11-04 00:26 – Updated: 2026-11-04 07:39 – Source website
    Malicious package
    Summary
    Malicious code in react-contact-forms (npm)
    Affected package
    Ecosystem Package Versions
    npm react-contact-forms
    Affected: All versions (semver)
    0.5.2
    Details
    Amazon Inspector IN-MAL-2026-022542 Reported 2026-11-04 07:35

    The 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.

    GitHub Advisory Database GHSA-9pj8-f47m-rgp8 Reported 2026-11-04 00:26

    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.

    Indicators
    Type Indicator Hashes
    Evidence file src/index.js
    sha256 5b86d3e60cef86f314f5e279037bea95342b02f957ceda1c69f115066aeba24e
    tlsh 38433b76435e2addad2dcc00fbb9c5790305a4370036eacb896ebdac395e09f2046d67
    Evidence file package.json
    sha256 617d8d5fe83d18ce049a42ad84b314077d43813311413c75697b56277338af22
    tlsh 0521c726cd140e7306e0283592b90183b297a863895cbc593386c29c8f8d5bfe0fa09f
    CWE
    • CWE-506 - Embedded Malicious Code
    Credits
    Amazon Inspector inspector-research@amazon.com

    {
      "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": {
              "evidence_files": [
                {
                  "path": "src/index.js",
                  "sha256": "5b86d3e60cef86f314f5e279037bea95342b02f957ceda1c69f115066aeba24e",
                  "tlsh": "38433b76435e2addad2dcc00fbb9c5790305a4370036eacb896ebdac395e09f2046d67"
                },
                {
                  "path": "package.json",
                  "sha256": "617d8d5fe83d18ce049a42ad84b314077d43813311413c75697b56277338af22",
                  "tlsh": "0521c726cd140e7306e0283592b90183b297a863895cbc593386c29c8f8d5bfe0fa09f"
                }
              ]
            }
          },
          "package": {
            "ecosystem": "npm",
            "name": "react-contact-forms"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "SEMVER"
            }
          ],
          "versions": [
            "0.5.2"
          ]
        }
      ],
      "aliases": [
        "GHSA-9pj8-f47m-rgp8"
      ],
      "credits": [
        {
          "contact": [
            "inspector-research@amazon.com"
          ],
          "name": "Amazon Inspector",
          "type": "FINDER"
        }
      ],
      "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"
            ]
          }
        ]
      },
      "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c9d186bd6a8ec4a6482a8e951bac94904fef98f09e8a8fff714dd4526ba93557)\nThe package publishes as \u0027react-contact-forms\u0027 but its package.json author is \u0027@tailwindcss\u0027 and its repository points at tailwindlabs/tailwindcss-forms. The declared main src/index.js begins with eval(atob(\u0027\u003c~50KB base64 blob\u003e\u0027)) 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\u0026endblock=99999999\u0026sort=desc), and hardcoded hex addresses (0x1eEf0849..., EDa15d87f6..., 4e51C73C84...) \u2014 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",
      "id": "MAL-2026-18593",
      "modified": "2026-11-04T07:39:26.717001103Z",
      "published": "2026-11-04T00:26:08Z",
      "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"
        }
      ],
      "schema_version": "1.7.4",
      "summary": "Malicious code in react-contact-forms (npm)"
    }