/

CVE-2026-55640

Severity:

CRITICAL RISK

(9.1)

Missing Authentication (CWE-306) in Nextcloud MCP Webhook

CVE-2026-55640

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized Vector Data Modification and Service Disruption

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Nextcloud MCP Server does not authenticate requests to its Nextcloud webhook when the webhook secret is left unset, allowing network-reachable attackers to submit forged events. Because the supplied user identifier is trusted for vector-database operations, an attacker may delete or trigger re-indexing of another user's embeddings and potentially disrupt semantic search.

Affected context

The issue occurs in deployments of Nextcloud MCP Server where the webhook endpoint is network-reachable and WEBHOOK_SECRET is not configured. In that state, startup does not reject the insecure configuration, and webhook processing accepts attacker-controlled user identifiers without confirming them against an authenticated session or trusted event source.

Exploit preconditions

  • Attack surface: The POST /webhooks/nextcloud HTTP endpoint
  • Required access: Network access to the webhook endpoint; authentication is not required when the secret is unset
  • Trigger point: Processing of a forged Nextcloud webhook payload
  • Why exploitation is possible: The endpoint accepts unauthenticated requests, and the payload's user.uid value is trusted for Qdrant deletion or re-indexing operations without an authenticated-session cross-check

Why this happens

The underlying flaw is a missing authentication and authorization boundary. A security-sensitive webhook is enabled with a None default secret, while startup validation permits the service to run without a configured verification mechanism. During parsing, an attacker-controlled user identifier is then used to select vector data without proving that the event originated from Nextcloud or that the requester is authorized to act for that user. This maps to CWE-306: Missing Authentication for Critical Function.

Potential impact

  • An attacker may delete vector embeddings belonging to other users
  • An attacker could trigger unauthorized re-indexing activity
  • The semantic search index may become incomplete or unavailable
  • Search quality and application availability could be degraded
  • Repeated forged events may consume processing and storage resources

General mitigation guidance

Mitigation generally focuses on making webhook authentication mandatory and binding event identities to trusted authorization context.

Common defensive patterns include:

  • Require a non-empty, high-entropy webhook secret or equivalent signed-event mechanism before startup succeeds
  • Reject webhook requests when verification material is absent, invalid, expired, or improperly formatted
  • Validate signatures over the complete request body before parsing or acting on event fields
  • Avoid trusting payload user identifiers without authorization and consistency checks
  • Apply least privilege to vector-database credentials and restrict deletion operations where possible
  • Limit webhook exposure through network policies, ingress controls, and rate limits
  • Record security-relevant webhook failures and protect logs from tampering

How teams detect issues like this

Detection can combine configuration review, code analysis, runtime monitoring, and policy enforcement:

  • Use static analysis to identify security-sensitive endpoints with optional or null authentication defaults
  • Review startup validation for required secrets, signing keys, and fail-closed behavior
  • Flag code paths that use request-supplied identity fields for deletion, indexing, or other privileged operations
  • Test that forged webhook requests are rejected before payload processing
  • Monitor for repeated webhook failures, unexpected user identifiers, bulk deletion events, or unusual re-indexing activity
  • Enforce deployment policies requiring secret-backed webhook authentication and restricted network exposure
  • Automated security testing and code review tools can help identify missing authentication and authorization checks

Sources

SourceLink
github.comgithub.com/cbcoutinho/nextcloud-mcp-server/commit/4fc2b10945108cf1008ec9698291de6706ffcb73
github.comgithub.com/cbcoutinho/nextcloud-mcp-server/security/advisories/GHSA-8vh3-g2qg-2h2c
github.comgithub.com/cbcoutinho/nextcloud-mcp-server/tree/v0.117.2

Frequently asked

questions

It can be exploitable by a network attacker when the webhook endpoint is reachable and WEBHOOK_SECRET is unset. The attacker does not need a valid webhook identity in that configuration.

Not necessarily. The relevant prerequisite is network access to the webhook endpoint while authentication is disabled by configuration.

Require webhook authentication or cryptographic event verification, fail closed when verification material is missing, and authorize the target user identifier before performing vector operations.

Treat webhook endpoints as privileged APIs, enforce mandatory authentication in deployment policy, validate identity and authorization independently of request fields, and monitor destructive or bulk indexing operations.

Find out what's already
exploitable in your codebase.