MAL-2026-10695 Malicious code in ai-p2p (npm)

Malicious package Published
Package
ai-p2p
Registry
npm

What is MAL-2026-10695?

MAL-2026-10695 is a malicious package in ai-p2p, published on 16 Jul 2026.

Official description

The package ships a single index.html that embeds a hardcoded Google Generative Language API key as a JavaScript constant (const GEMINI_KEY = "AQ.Ab8RN6...";) and calls https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=<KEY> from the browser when the user clicks the chat button. The key belongs to the package author's own Google account. There are no npm lifecycle scripts (no preinstall/install/postinstall/prepare), and main points at the HTML file, so nothing executes on npm install or require(). The key is not a third-party credential being distributed to installers, nor does the code read or exfiltrate any installer-side data; the only consequence of using the package is that requests consume the author's own Gemini quota.

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.

What should I do about MAL-2026-10695?

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

Sources

Also known as GHSA-g5cv-hmr5-x42p.

Is MAL-2026-10695 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free