Critical (AgentArmorHQ estimate)Supply chain

Malicious code in api-anthropic (npm)

Product
api-anthropic (npm)
Affected
api-anthropic (npm) all versions
Fixed in
No fix yet

Last verified against sources: October 26, 2026

Am I affected?

api-anthropic (npm): affected api-anthropic (npm) all versions. No fix has been reported yet.

  • Check your version: run npm ls api-anthropic. Versions all versions of api-anthropic are affected. [1]

What to do now

  1. Remove the package if it is installed: run npm uninstall api-anthropic. [1]
  2. Rotate all secrets and keys stored on that computer, and do it from a different computer. [1]
  3. Remove the package. [1]
  4. Removing the package may not remove all malicious software that came from installing it. [1]

General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.

Discuss this incident

What happened

  • The npm package api-anthropic contains malicious code. [1]
  • All versions of the package are affected. [1]

Impact

  • Any computer that has this package installed or running should be considered fully compromised. [1]
  • An outside entity may have been given full control of the computer. [1]

What was done

  • No patched version is listed; the source says patched: none. [1]

Sources

  1. MAL-2026-18055 — OSV (Open Source Vulnerabilities)

Every statement above was checked against these sources before publishing. Spotted an error? Tell us and we will correct it with a dated note.

Share advisory brief with your team

Copy a plain-text summary for Slack, GitHub issues, or team security channels.

Brief
Malicious code in api-anthropic (npm)
Product: api-anthropic (npm) | Affected: api-anthropic (npm) all versions | Fixed in: No fix yet
Summary: The npm package api-anthropic contains malicious code.
Source & remediation on AgentArmorHQ: https://agentarmorhq.com/incidents/2026/10/mal-2026-18055-api-anthropic-npm
Was this page useful?

Corrections

Report an error or request a correction. We review requests within 5 business days and add a dated correction note.

10 to 2,000 characters. A link to a source helps. Stored as plain text.

Discussions for api-anthropic (npm)

Ask questions or share configuration tips. Governed by our Community Rules & Terms.

No posts match this filter yet.

Be the first to ask a question or share a working tip.

Check before you install

Paste a package name or a GitHub link and get a clear answer in seconds: Block, Review or No known issues. No account needed.

Check a package

Questions? Contact us