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
- Remove the package if it is installed: run
npm uninstall api-anthropic. [1] - Rotate all secrets and keys stored on that computer, and do it from a different computer. [1]
- Remove the package. [1]
- 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.
What happened
Impact
What was done
- No patched version is listed; the source says patched: none. [1]
Sources
- 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.
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-npmCorrections
Report an error or request a correction. We review requests within 5 business days and add a dated correction note.
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.