CVE-2026-54504
JavaScript Análise e mitigação de vulnerabilidades

Visão geral

CVE-2026-54504 is a missing authentication and unsafe network binding vulnerability in the npm package @andrea9293/mcp-documentation-server v1.13.0. The Web UI/API, which starts automatically by default on port 3080, binds to all network interfaces (0.0.0.0:3080) instead of localhost only, and exposes document-management API endpoints without any authentication requirement. This allows any network-reachable client on the same LAN, VM network, or container bridge to perform unauthenticated document-admin operations. The vulnerability was reported by researcher mcfly-zzh, published to the GitHub Advisory Database on July 15, 2026, and carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory).

Detalhes técnicos

The root cause is a combination of CWE-306 (Missing Authentication for Critical Function) and CWE-668 (Exposure of Resource to Wrong Sphere). In src/web-server.ts, the Express application calls app.listen(PORT) without specifying a host argument; in Node.js/Express, omitting the host causes the server to bind to all interfaces (0.0.0.0) by default rather than 127.0.0.1. The Web UI starts automatically unless the environment variable START_WEB_UI is explicitly set to false, and none of the exposed REST API endpoints (GET /api/documents, GET /api/documents/:id, POST /api/documents, POST /api/search-all, DELETE /api/documents/:id, GET /api/config) enforce any authentication check. A full proof-of-concept Python script was included in the advisory demonstrating unauthenticated enumeration, insertion, reading, searching, and deletion of documents via the host's LAN IP (GitHub Advisory, Security Advisory).

Impacto

A network-adjacent unauthenticated attacker can fully read, search, insert, and delete documents stored in the MCP documentation server's knowledge base without any credentials. This affects confidentiality (full document content disclosure), integrity (attacker-controlled documents can be injected into the corpus used by the MCP assistant, potentially poisoning AI-assisted workflows), and availability (documents can be deleted). Users running the server on laptops, workstations, development VMs, or hosts connected to shared networks, VPNs, or Docker bridges are all at risk; the advisory explicitly notes this does not constitute remote code execution (GitHub Advisory).

Exploração

A public proof-of-concept Python script is included in the official security advisory and requires no special tools or privileges — only network adjacency to the target host. No authentication header is needed; standard HTTP requests to port 3080 are sufficient. There is no evidence of in-the-wild exploitation or threat actor attribution at this time, and the CVE status remains Reserved. The vulnerability is detected by Qualys cloud security scanning (plugin 444850) and has been reviewed by Tenable (GitHub Advisory, GitLab Advisory).

Etapas de exploração

  1. Reconnaissance: Identify hosts on the local network running @andrea9293/mcp-documentation-server v1.13.0 by scanning for open TCP port 3080 using a tool such as nmap -p 3080 <subnet>.
  2. Confirm exposure: Send an unauthenticated HTTP GET request to /api/config on the target's LAN IP: curl -sS http://<LAN_IP>:3080/api/config. A JSON response (e.g., {"gemini_available":false,"embedding_model":"Xenova/all-MiniLM-L6-v2"}) confirms the service is exposed and unauthenticated.
  3. Enumerate documents: Issue GET http://<LAN_IP>:3080/api/documents to list all stored document titles and IDs without credentials.
  4. Read document contents: Retrieve full content of any document via GET http://<LAN_IP>:3080/api/documents/<id>.
  5. Inject attacker-controlled content: POST a malicious document to POST http://<LAN_IP>:3080/api/documents with a JSON body containing attacker-controlled title, content, and metadata fields, poisoning the knowledge base used by the MCP assistant.
  6. Search corpus: Use POST http://<LAN_IP>:3080/api/search-all with a query payload to search across all stored documents.
  7. Delete documents: Issue DELETE http://<LAN_IP>:3080/api/documents/<id> to destroy any document, causing availability impact (GitHub Advisory, Security Advisory).

Indicadores de compromisso

  • Network: Unexpected inbound HTTP connections to TCP port 3080 from non-localhost IP addresses; ss -ltnp | grep ':3080' showing LISTEN *:3080 instead of 127.0.0.1:3080.
  • Logs: HTTP access logs for the Express server showing requests to /api/documents, /api/config, /api/search-all originating from LAN or external IPs without any Authorization header.
  • File System: Unexpected or unfamiliar document entries in the MCP server's data directory (MCP_BASE_DIR) that were not added by the legitimate user, particularly documents with suspicious titles or attacker-controlled content markers.
  • Process: Node.js process listening on 0.0.0.0:3080 (verifiable via ss -ltnp or netstat -tlnp) when the server is running with default configuration (GitHub Advisory).

Mitigação e soluções alternativas

Upgrade to @andrea9293/mcp-documentation-server v1.13.1, which binds the Web UI to 127.0.0.1 by default and introduces a new WEB_HOST environment variable (defaulting to 127.0.0.1) for explicit opt-in to network exposure (v1.13.1 Release, Fix Commit). As an immediate workaround on v1.13.0, set START_WEB_UI=false in the environment to disable the Web UI entirely, or use host-based firewall rules to block external access to TCP port 3080. If network exposure is required, set WEB_HOST=0.0.0.0 only after upgrading to v1.13.1 and implement network-level access controls.

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado JavaScript Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

CVE-2026-54504HIGH8.8
  • JavaScript logoJavaScript
  • @andrea9293/mcp-documentation-server
NãoSimSep 17, 2026
CVE-2026-77615HIGH8.7
  • JavaScript logoJavaScript
  • paella-core
NãoSimSep 17, 2026
CVE-2026-91127HIGH8.2
  • JavaScript logoJavaScript
  • @file-viewer/doc
NãoSimSep 18, 2026
CVE-2026-77301HIGH7.5
  • JavaScript logoJavaScript
  • openclaw
NãoSimSep 18, 2026
CVE-2026-84992MEDIUM6.1
  • JavaScript logoJavaScript
  • md-editor-v3
NãoSimSep 18, 2026

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades