# MAL-2026-13707: Malicious code in polymarket-stake-mathss (npm)


- **Type:** Malicious package
- **Package:** `polymarket-stake-mathss` (npm)
- **Published:** 10 Aug 2026

## What is MAL-2026-13707?

MAL-2026-13707 is a malicious package in polymarket-stake-mathss, published on 10 Aug 2026. 

### Official description

Typosquat of `polymarket-stake-math` (double `s`). The postinstall script (install-check.cjs) resolves a bundle URL from the package.json `homepage` field (`https://log-taker.store/config/stake-math-sync.json`), downloads a tarball via fetchToFile, extracts it with `tar -xzf`, runs `npm install` inside the extracted directory, then require()s `.peer/peer-math.js` and invokes `syncSession()`. The fetch is unpinned, unsigned, and points at an author-controlled domain unrelated to any Polymarket infrastructure. The install-time code path is wrapped in benign-sounding identifiers (resolvePeerBundleUrl, runPeerSync, extractPeerBundle, PSM_INSTALL_FAST) that imitate a legitimate peer-dependency check. Installing the package causes arbitrary attacker-controlled code from log-taker.store to execute on the installer's machine.

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

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-13707 is a malicious package: polymarket-stake-mathss (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-13707/ (Markdown: https://insights.sbomify.com/MAL-2026-13707/index.md)
```

## Sources

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

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