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

推荐订阅源

宝玉的分享
宝玉的分享
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
Y
Y Combinator Blog
月光博客
月光博客
IT之家
IT之家
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
L
LangChain Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
博客园 - Franky
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
V
Visual Studio Blog
小众软件
小众软件
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium

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
Your MCP dependency scan can pass and still miss HIGH vul...
Bindfort · 2026-05-13 · via DEV Community

Bindfort

Quick story, then the practical part.

We scanned five official MCP reference servers from the @modelcontextprotocol npm namespace. Standard tooling against the package manifest:

0 findings

Enter fullscreen mode Exit fullscreen mode

Then we re-ran the same check against the installed dependency tree:

10 HIGH findings

Enter fullscreen mode Exit fullscreen mode

Same five servers. Same advisory database. The difference was that the second scan walked into a package the first one never had reason to query: @modelcontextprotocol/sdk@1.0.1.

The advisories were public. The fixes were already shipped. The scan just didn't reach that far down.

What we scanned

The five official reference servers, on April 26, 2026:

  • @modelcontextprotocol/server-filesystem
  • @modelcontextprotocol/server-github
  • @modelcontextprotocol/server-everything
  • @modelcontextprotocol/server-memory
  • @modelcontextprotocol/server-sequential-thinking

The scan walked the full installed tree using npm ls --json --all, then sent every resolved package/version pair through OSV.dev.

What turned up

Every server resolved the same SDK version:

@modelcontextprotocol/sdk@1.0.1

Enter fullscreen mode Exit fullscreen mode

That version sits behind two public HIGH advisories:

Advisory Issue Fixed in
GHSA-8r9q-7v3j-jr4g ReDoS in the SDK parser @modelcontextprotocol/sdk@1.25.2
GHSA-w48q-cv73-mx4w DNS rebinding from missing default Host validation @modelcontextprotocol/sdk@1.24.0

Two advisories × five servers = ten HIGH findings.

Why these matter (more than usual)

The ReDoS one is the interesting one. It's triggerable through an MCP tool response, not through a normal inbound HTTP request. A compromised or malicious upstream server can return crafted content and pin the calling agent's Node.js event loop. That's the opposite direction from where most application security tooling looks.

The DNS rebinding one is more familiar but still serious in this context. A user has an MCP server running locally. They open a browser tab. After DNS rebinding, attacker-controlled JavaScript can reach the local MCP server and call exposed tools. Filesystem, shell, repo, database — whatever the server hands out.

No malware. No privilege escalation. A browser tab and a service that didn't validate Host.

Why the shallow scan returned clean

The @modelcontextprotocol/server-* packages don't have GHSA entries on themselves. Ask a top-level scanner about them and you'll get back exactly what you asked for:

@modelcontextprotocol/server-filesystem  →  0 findings
@modelcontextprotocol/server-github      →  0 findings
@modelcontextprotocol/server-everything  →  0 findings
@modelcontextprotocol/server-memory      →  0 findings
@modelcontextprotocol/server-sequential  →  0 findings

Enter fullscreen mode Exit fullscreen mode

What's actually on disk looks more like this:

@modelcontextprotocol/server-filesystem
  └─ @modelcontextprotocol/sdk@1.0.1
       ├─ GHSA-8r9q-7v3j-jr4g
       └─ GHSA-w48q-cv73-mx4w

Enter fullscreen mode Exit fullscreen mode

Same database, same packages, different scan depth.

Shallow package scan:  5 × 0  =  0 findings
Recursive tree scan:   5 × 2  = 10 HIGH

Enter fullscreen mode Exit fullscreen mode

The check you can run right now

From inside the project (or installed server directory):

npm ls @modelcontextprotocol/sdk --all

Enter fullscreen mode Exit fullscreen mode

Installed SDK version Status
<1.24.0 Both advisories present
1.24.0 through 1.25.1 DNS rebinding patched; ReDoS still present
>=1.25.2 Both advisories patched

If the lockfile still pins 1.0.1, just bumping package.json won't help. Update the lockfile, reinstall, and confirm with npm ls that the resolved version actually changed.

What a better scanner has to do

For npm-based MCP servers, the useful target is the installed tree:

npm ls --json --all

Enter fullscreen mode Exit fullscreen mode

Then walk it recursively and query every node:

func walkNPMTree(tree map[string]npmTreeNode, out *[]DependencyInput) {
    for name, node := range tree {
        if name != "" && node.Version != "" {
            *out = append(*out, DependencyInput{
                Name:      name,
                Version:   node.Version,
                Ecosystem: "npm",
            })
        }
        if len(node.Dependencies) > 0 {
            walkNPMTree(node.Dependencies, out)
        }
    }
}

Enter fullscreen mode Exit fullscreen mode

For a typical MCP server install that yields around 179 dependency records. Send them through OSV's batch endpoint and the SDK shows up as one of the records that returns hits.

The --all flag matters: without it, npm collapses deduped packages and you can lose parts of the resolved tree.

Closing note

This isn't a zero-day. The advisories are published, the fixes exist, and we're not the first to notice either one.

The point is more boring and probably more useful: known-vulnerable code can sit one level below the package your scanner checked, and "scan passed" doesn't always mean "tree is clean." For MCP, that's worth getting right before pointing an agent at production.

Full write-up and contact: https://bindfort.io/blog/mcp-transitive-cve-scan-2026