Malicious code in 8-fetchsight-web (npm)
The npm package 8-fetchsight-web contained malicious code that fetches and executes arbitrary JavaScript from a mutable Bitbucket repository with no integrity checks. The package uses a top-level IIFE to load remote HTML content and re-execute all scripts, allowing the attacker to inject arbitrary code into any page loading the package.
- Disclosed
- Last updated
- Blast radius
- All applications that installed 8-fetchsight-web and loaded it in a browser context.
- Ecosystems
- Attack vectors
- Affected entities
- 8-fetchsight-webnpm package containing malicious code in index.js and index.html
The npm package 8-fetchsight-web was found to contain malicious code in its index.js and index.html files. The package implements a top-level Immediately Invoked Function Expression (IIFE) that fetches content from https://bitbucket.org/p2p-alt-public/p2p-emis/raw/main/GameWebSight, parses it as HTML, and replaces the current document with it.
The malicious mechanism re-creates every HTML tag from the fetched document, ensuring that both inline and remote-sourced scripts execute in the page context. Critically, the URL points to the mutable main branch of a Bitbucket workspace unrelated to the npm publisher, meaning whoever controls that Bitbucket path can substitute arbitrary JavaScript at any time.
The package was advertised as a 'website loader for remote HTML content,' but the implementation provides arbitrary code execution with no integrity verification, no pinning to a specific commit, and no publisher-controlled source. This allows an attacker to inject malicious code into every page that loads this package.
The incident was identified by the OpenSSF's malicious-packages project and reported via GitHub Security Advisory GHSA-6wj3-8mh4-prqm.
Indicators of compromise
- Packages
- 8-fetchsight-web
- Domains
- bitbucket.org
Remediation
- Remove 8-fetchsight-web from all projects immediately
- Audit all applications that depend on 8-fetchsight-web for signs of compromise or data exfiltration
- Review browser history and network logs for unexpected requests to bitbucket.org/p2p-alt-public/p2p-emis during the period the package was installed
- Rotate any credentials or sensitive data that may have been exposed to pages loading this package
- Update npm dependencies and verify no other malicious packages are present
Sources
- GitHub Advisory GHSA-6wj3-8mh4-prqm · GitHub Advisory Database
Cite this entry
"Malicious code in 8-fetchsight-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-8-fetchsight-web-npm-v1xh0u
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malware in svelte-dim-kit
The npm package svelte-dim-kit was found to contain malware, potentially giving attackers full control of affected systems. All systems with this package installed should be considered compromised and secrets/keys rotated immediately from a different computer.
npmCompromised package - 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 - 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 - resolvedcritical
Malicious code in stillm4ddpocs-rtest-bravo (npm)
The npm package stillm4ddpocs-rtest-bravo contained malicious code in its preinstall script that automatically executed during installation, collecting system information and internal package metadata and exfiltrating it to a third-party Interactsh collector via HTTPS and DNS tunneling.
npmCompromised package