Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in 3-buildsight-web (npm)

The npm package 3-buildsight-web contains malicious code that fetches and executes arbitrary JavaScript from a remote Bitbucket URL on module load, granting full page privileges to an unverified third party.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any application importing the 3-buildsight-web package executes arbitrary remote JavaScript with full page privileges on each load.
Ecosystems
Attack vectors
Affected entities
  • 3-buildsight-webnpm package containing malicious code in main entry point

The npm package 3-buildsight-web was found to contain malicious code in its main entry point. The package includes a top-level IIFE (Immediately Invoked Function Expression) that executes on module load and fetches content from a hardcoded Bitbucket raw URL: https://bitbucket.org/p2p-alt-public/p2p-emis/raw/main/GameWebSight.

The fetched HTML is parsed and injected directly into the DOM, with nodes re-created and appended to document.body, causing any remote JavaScript to execute in the consuming application's context with full page privileges. The reference is unpinned—it points to the mutable main branch with no commit hash, tag, or integrity check, meaning the attacker can substitute arbitrary code at any time.

The Bitbucket workspace p2p-alt-public is not aligned with any recognizable publisher, indicating the package was likely created for malicious purposes. Every load of any application that imports this package will execute whatever bytes the branch currently serves, with no protection or verification.

The incident was identified by the OpenSSF's malicious-packages project and reported via GitHub Security Advisory GHSA-p6pp-6xxg-295v.

Indicators of compromise

Packages
  • 3-buildsight-web
Domains
  • bitbucket.org

Remediation

  • Remove the 3-buildsight-web package from all projects immediately
  • Audit application dependencies to identify any use of 3-buildsight-web
  • Review application logs and network traffic for evidence of compromise or data exfiltration during the period the package was installed
  • Rotate any credentials or sensitive data that may have been exposed to the malicious code
  • Update to a safe version if a patched release becomes available, or replace with a legitimate alternative

Sources

  1. GitHub Advisory GHSA-p6pp-6xxg-295v · GitHub Advisory Database

Cite this entry

"Malicious code in 3-buildsight-web (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 23, 2026; last updated August 23, 2026. https://supplychainattack.org/incident/malicious-code-in-3-buildsight-web-npm-1aw4cg

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in rust-testing-utils (npm)

    The npm package rust-testing-utils contained malicious code that impersonates the pino logger and executes remotely-fetched code with arbitrary privileges. The package spawns a child process that decodes a hardcoded URL, fetches attacker-controlled content, and executes it via Function constructor with full module-loading capability.

    npmCompromised packageMalicious commit
  2. containedcritical

    Malicious code in stillm4ddpocs-demo-sprocket (npm)

    The npm package stillm4ddpocs-demo-sprocket version 999.9.12 contains malicious code that exfiltrates system and project metadata via multiple channels (HTTPS, HTTP, and DNS) to a hardcoded callback host. The package uses a high version number to exploit dependency-confusion attacks against organizations with internal packages of the same name.

    npmCompromised packageDependency confusion
  3. containedcritical

    Malicious code in @syncraft-labs/react (npm)

    The npm package @syncraft-labs/react contained obfuscated malicious code in its ESM distribution that implements the EtherHiding pattern, fetching and executing arbitrary code from an Ethereum smart contract via RPC endpoints. The tampering occurred post-build in the dist/index.js artifact.

    npmCompromised package
  4. containedcritical

    Malware in hydration-dim-kit

    Malware was discovered in the npm package hydration-dim-kit. Any computer with this package installed or running should be considered fully compromised. All secrets and keys must be rotated immediately from a different computer.

    npmCompromised package