mal-2026-12428
Vulnerability from ossf_malicious_packages
Published
2026-08-05 12:25
Modified
2026-08-21 12:28
Summary
Malicious code in rollup-packages-node-polyfills (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (dd41e8f4e3846a790a96f518bbdcfe70be2839531c5ea5485924e7fd25603399)

The package is a typosquat of rollup-plugin-polyfill-node. On require() of the main entry (dist/index.js), a base64-encoded command npm install cors-update --no-save --silent --no-audit --no-fund is decoded and passed to child_process.spawn with stdio:'ignore' and windowsHide:true. When the install child exits, the code then base64-decodes the module name cors-update, dynamically requires it, and invokes .getPlugin()(), executing whatever code that separately-published package ships. The command string and the target module name are both stored as base64 literals to evade plain-text scanners. The package's advertised purpose (a Rollup Node polyfills plugin) does not require installing or executing any other npm package at import time.

Source: ghsa-malware (3c6b3851dc147286bd78055855402bd425ede657b7911d1334158729680b95bf)

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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.

{
  "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"
          },
          {
            "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": "dist/index.js",
              "sha256": "aab2343549f633386070530996481751975ee796e0f30b52200410b76b730d6b",
              "tlsh": "4e81642514f629550373b6ec518bec71397b9393338ccb503e2c83709fa15288a76af5"
            }
          ],
          "package_integrity": [
            {
              "filename": "rollup-packages-node-polyfills-0.13.2.tgz",
              "hashes": {
                "sha1": "4c5c587106a3da76a471981552bc1a01690b8d6f",
                "sha512_sri": "sha512-hfIi7VbhFGD/jlJiC8G4dfw6fxacgKuscdKlCrDX4J/J4L95IFBKBURTcqt0m9Bs1DognX839zpmlECEn1n9sA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "rollup-packages-node-polyfills"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "0.13.2",
        "0.0.1",
        "0.13.1",
        "0.13.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-gp6f-mxh4-x3mh"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-014846",
        "import_time": "2026-08-05T13:08:50.752419587Z",
        "modified_time": "2026-08-05T13:00:44Z",
        "sha256": "69acfb561d96b50bad013aee083ca9334855473d17983665b077953853827a20",
        "source": "amazon-inspector",
        "versions": [
          "0.13.2"
        ]
      },
      {
        "id": "IN-MAL-2026-014847",
        "import_time": "2026-08-05T13:08:50.818159326Z",
        "modified_time": "2026-08-05T13:00:51Z",
        "sha256": "8271e51ffa2367b6282e7ed6834cf70ba341d4c56051e3cc1d25acdcaeab3e9f",
        "source": "amazon-inspector",
        "versions": [
          "0.0.1"
        ]
      },
      {
        "id": "IN-MAL-2026-014798",
        "import_time": "2026-08-05T13:08:47.249676232Z",
        "modified_time": "2026-08-05T12:52:52Z",
        "sha256": "dd41e8f4e3846a790a96f518bbdcfe70be2839531c5ea5485924e7fd25603399",
        "source": "amazon-inspector",
        "versions": [
          "0.13.1"
        ]
      },
      {
        "id": "IN-MAL-2026-014649",
        "import_time": "2026-08-05T13:08:33.823108056Z",
        "modified_time": "2026-08-05T12:25:23Z",
        "sha256": "f9f367bb71da1310a9cb108ef4132a9e4455013547561f0de311bd672f5fd230",
        "source": "amazon-inspector",
        "versions": [
          "0.13.0"
        ]
      },
      {
        "id": "GHSA-gp6f-mxh4-x3mh",
        "import_time": "2026-08-21T12:26:03.491181507Z",
        "modified_time": "2026-08-21T12:12:33Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "3c6b3851dc147286bd78055855402bd425ede657b7911d1334158729680b95bf",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dd41e8f4e3846a790a96f518bbdcfe70be2839531c5ea5485924e7fd25603399)\nThe package is a typosquat of `rollup-plugin-polyfill-node`. On `require()` of the main entry (`dist/index.js`), a base64-encoded command `npm install cors-update --no-save --silent --no-audit --no-fund` is decoded and passed to `child_process.spawn` with `stdio:\u0027ignore\u0027` and `windowsHide:true`. When the install child exits, the code then base64-decodes the module name `cors-update`, dynamically `require`s it, and invokes `.getPlugin()()`, executing whatever code that separately-published package ships. The command string and the target module name are both stored as base64 literals to evade plain-text scanners. The package\u0027s advertised purpose (a Rollup Node polyfills plugin) does not require installing or executing any other npm package at import time.\n\n## Source: ghsa-malware (3c6b3851dc147286bd78055855402bd425ede657b7911d1334158729680b95bf)\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-12428",
  "modified": "2026-08-21T12:28:12.635480925Z",
  "published": "2026-08-05T12:25:23Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/rollup-packages-node-polyfills/v/0.13.2"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/rollup-packages-node-polyfills/v/0.0.1"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/rollup-packages-node-polyfills/v/0.13.1"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/rollup-packages-node-polyfills/v/0.13.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-gp6f-mxh4-x3mh"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in rollup-packages-node-polyfills (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…