惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
罗磊的独立博客
B
Blog
博客园_首页
A
About on SuperTechFans
有赞技术团队
有赞技术团队
V
V2EX
U
Unit 42
I
InfoQ
IT之家
IT之家
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
H
Help Net Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Anthropic SDK Looks Safe. Two of Its Transitive Depen...
Pico · 2026-04-27 · via DEV Community

Pico

The Anthropic SDK Looks Safe. Two of Its Transitive Dependencies Are Not.

Sole maintainer. 10M+ weekly downloads. No release in over a year.

Run a standard supply chain audit on @anthropic-ai/sdk. You get this:

@anthropic-ai/sdk: score=86  14 maintainers  15.1M downloads/week  ✅ HEALTHY

Enter fullscreen mode Exit fullscreen mode

Looks fine. Anthropic maintains it actively, large team, widely used. Move on.

Run it again at depth 2 — checking what the SDK's dependencies depend on:

@anthropic-ai/sdk         score=86  14 maint  15.1M/wk  ✅ HEALTHY
  └─ json-schema-to-ts    score=71   1 maint  14.9M/wk  🔴 CRITICAL: sole maintainer + >10M/wk
       └─ ts-algebra       score=64   1 maint  12.3M/wk  🔴 CRITICAL: sole maintainer + no release in 12+ months
       └─ @babel/runtime   score=93   4 maint  139M/wk   ✅ HEALTHY

Enter fullscreen mode Exit fullscreen mode

json-schema-to-ts is the only runtime dependency of the Anthropic SDK. One maintainer. Nearly 15 million weekly downloads. The exact attack profile that hit LiteLLM in March 2026 and axios in March 2026.

ts-algebra — one level deeper — is also CRITICAL: sole maintainer, 12 million downloads per week, no release in over a year.

Neither shows up if you only audit your direct dependencies.

Why transitive risks are harder to see

When you run npm audit, it checks for known CVEs in your dependency tree. Good. But it doesn't tell you:

  • Which packages have a single maintainer who could be social-engineered
  • Which widely-used packages haven't been actively maintained
  • Which small packages have become load-bearing infrastructure without anyone noticing

json-schema-to-ts is a perfect example of the last one. It's a type utility, so it looks like a dev dependency. It's not — the Anthropic SDK ships it as a runtime dependency, meaning it runs in production in every app using Claude's API.

Nearly 15 million downloads a week. One maintainer. No public corporate backing.

The attack pattern

The attacks we've seen follow a consistent pattern:

  1. Find a widely-used package with a single maintainer
  2. Acquire access (account takeover, social engineering, or maintainer transfer)
  3. Publish a malicious version that looks like a routine update
  4. Wait

The LiteLLM compromise in March 2026 came via a backdoored Trivy GitHub Action in LiteLLM's CI pipeline. The ua-parser-js attack in October 2021 (CVE-2021-4229) targeted the package directly via credential compromise.

In both cases, the attack surface was visible from behavioral signals before the attack: single maintainer, high download volume, no organizational backing.

Scanning the full tree

The Commit supply chain scanner supports depth-2 tree traversal. Try it directly:

curl -X POST https://poc-backend.amdal-dev.workers.dev/api/graph/npm \
  -H "Content-Type: application/json" \
  -d '{"package": "@anthropic-ai/sdk", "depth": 2}'

Enter fullscreen mode Exit fullscreen mode

Or via MCP (zero install — add to Claude Desktop, Cursor, Windsurf):

{
  "mcpServers": {
    "commit": {
      "type": "streamable-http",
      "url": "https://poc-backend.amdal-dev.workers.dev/mcp"
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Then ask: "Map the dependency tree risk for @anthropic-ai/sdk at depth 2"

A few more examples

express at depth 2: no CRITICAL flags, but escape-html (1 maintainer, no release in 13 months) shows up as a transitive dep with score 39.

vercel/ai: husky shows up CRITICAL — 1 maintainer, 24.6M downloads/week. DevDependency, lower risk, but runs in CI everywhere.

langchain: several transitive dependencies with single maintainers and no recent releases.

The pattern: packages that look healthy at depth 1 often have riskier dependencies one level deeper.

What to do with this

A CRITICAL flag doesn't mean "stop using this package immediately." It means "this is your attack surface — know it."

For json-schema-to-ts: pin to a known-good version, monitor for unusual activity, understand that if it's compromised, your app is compromised.

The first step is visibility. Most teams don't know what's in their transitive dependency tree, and that's exactly the gap these attacks exploit.


Scanner at getcommit.dev/audit — open source: github.com/piiiico/proof-of-commitment. No install, no API key.