mal-2026-16333
Vulnerability from ossf_malicious_packages
Published
2026-09-21 03:31
Modified
2026-10-01 23:25
Summary
Malicious code in homestack-cheer (npm)
Details

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

Source: amazon-inspector (f475cd8b8a3e1dd4563ca0b20d85fde83576ed78c27eb91ca1cd77fbebe0d142)

The package is published as homestack-cheer with description 'JS lib support cheerleading', but the README and the UMD build (dist/my-lib.umd.js) present it as a trivial hello-world 'greet' library. The ESM entrypoint declared in package.json 'module' (src/index.js) and src/env_load.js each end with new Function(atob('<~180KB base64>')).call(this), decoding an obfuscated second-stage payload via a runtime string-shuffle routine. When a downstream project bundles this package with webpack/rollup, the ESM path is resolved and the hidden payload is embedded into the resulting application bundle and executed in end-users' browsers. The decoded payload checks window.location for the substring 'checkout' and, when a Stripe payment element iframe (#stripe-payment-element iframe) is present, hides the real Stripe iframe, clears the disabled state on the place-order button, and injects a look-alike iframe with id __privateStripeFrame84331 to intercept card input. The divergence between the benign main (UMD greet) and the malicious module (ESM Function(atob(...))) constitutes deliberate dual-entrypoint smuggling designed to evade casual review of the package's headline file.

Source: ghsa-malware (b0622f60729e4dec05a0c9f802b4728a7c579d968532a87d664b759da856ad27)

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.

{
  "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": "619d23734e3b0bca92f3aa7fcb39f2a28ade4f7fa8d3cda03f50a4e2ffa9bac6",
              "tlsh": "3a14e0a555c55ad769e9ce0954d8652c9b383e8330718c9cfb6e39cf8f2aee420b043d"
            },
            {
              "path": "src/env_load.js",
              "sha256": "230125800baf6cba52ba03ab9aa73706237836768b044553822fbf4614a846a9",
              "tlsh": "410449184f433d72dfa047013bed35d9261d938e20a110cead2e698a6319beb75f16bd"
            },
            {
              "path": "package.json",
              "sha256": "c0be25987c2961a05d540f0a67daf667991ac3e688053549de7365a07ef0ce7e",
              "tlsh": "83e02628db309c2314c841948de74203a7a04c6b8088bc1d3bd3011c464d7b344fd96d"
            }
          ],
          "package_integrity": [
            {
              "filename": "homestack-cheer-1.1.9.tgz",
              "hashes": {
                "sha1": "99c88fd898ce48869eaece5303b6d0f67766e290",
                "sha512_sri": "sha512-H7Ejg7Fca9MRzl1k5y3bCdR423zte3QndAXwRhfflvKfQuXiErhrJmKU1ZMjdxL1flBluF6L3wEELWjAO6sdaQ=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "homestack-cheer"
      },
      "versions": [
        "1.1.9",
        "1.1.8",
        "1.1.7",
        "1.1.6",
        "1.1.5",
        "1.1.3",
        "1.1.2",
        "1.1.1",
        "1.1.0",
        "1.0.2",
        "1.0.1",
        "1.0.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-x567-p88w-3697"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-020235",
        "import_time": "2026-09-21T03:46:38.518388336Z",
        "modified_time": "2026-09-21T03:31:35Z",
        "sha256": "f475cd8b8a3e1dd4563ca0b20d85fde83576ed78c27eb91ca1cd77fbebe0d142",
        "source": "amazon-inspector",
        "versions": [
          "1.1.9"
        ]
      },
      {
        "id": "GHSA-x567-p88w-3697",
        "import_time": "2026-10-01T23:23:32.052902171Z",
        "modified_time": "2026-10-01T22:25:35Z",
        "sha256": "b0622f60729e4dec05a0c9f802b4728a7c579d968532a87d664b759da856ad27",
        "source": "ghsa-malware",
        "versions": [
          "1.1.9",
          "1.1.8",
          "1.1.7",
          "1.1.6",
          "1.1.5",
          "1.1.3",
          "1.1.2",
          "1.1.1",
          "1.1.0",
          "1.0.2",
          "1.0.1",
          "1.0.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f475cd8b8a3e1dd4563ca0b20d85fde83576ed78c27eb91ca1cd77fbebe0d142)\nThe package is published as homestack-cheer with description \u0027JS lib support cheerleading\u0027, but the README and the UMD build (dist/my-lib.umd.js) present it as a trivial hello-world \u0027greet\u0027 library. The ESM entrypoint declared in package.json \u0027module\u0027 (src/index.js) and src/env_load.js each end with `new Function(atob(\u0027\u003c~180KB base64\u003e\u0027)).call(this)`, decoding an obfuscated second-stage payload via a runtime string-shuffle routine. When a downstream project bundles this package with webpack/rollup, the ESM path is resolved and the hidden payload is embedded into the resulting application bundle and executed in end-users\u0027 browsers. The decoded payload checks `window.location` for the substring \u0027checkout\u0027 and, when a Stripe payment element iframe (#stripe-payment-element iframe) is present, hides the real Stripe iframe, clears the disabled state on the place-order button, and injects a look-alike iframe with id `__privateStripeFrame84331` to intercept card input. The divergence between the benign `main` (UMD greet) and the malicious `module` (ESM Function(atob(...))) constitutes deliberate dual-entrypoint smuggling designed to evade casual review of the package\u0027s headline file.\n\n## Source: ghsa-malware (b0622f60729e4dec05a0c9f802b4728a7c579d968532a87d664b759da856ad27)\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-16333",
  "modified": "2026-10-01T23:25:43.887581534Z",
  "published": "2026-09-21T03:31:35Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/homestack-cheer/v/1.1.9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-x567-p88w-3697"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in homestack-cheer (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…

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.


Loading…