AAK-MCP-NEXTCLOUD-CVE-2026-55640-001: Nextcloud MCP Server webhook endpoint is unauthenticated by default (below 0.117.2)
- Severity
- CRITICAL
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
NextcloudMcpWebhookNoAuth
What it detects
Nextcloud MCP Server before 0.117.2 exposes POST /webhooks/nextcloud (nextcloud_mcp_server/vector/webhook_receiver.py) with no authentication unless an operator sets one: WEBHOOK_SECRET defaults to None and startup validation does not require it, so handle_nextcloud_webhook() accepts unauthenticated requests in a default deployment (CVE-2026-55640, CWE-306, CVSS 3.1 9.1). This is the fail-open-by-default shape rather than a missing check: the code has a secret, and the default value disables it.
How to fix
Upgrade nextcloud-mcp-server to >= 0.117.2 and pin it. Until then set WEBHOOK_SECRET explicitly and keep the webhook path off any untrusted network. The durable fix in your own servers is to fail startup when a required secret is unset rather than defaulting it to None -- an optional secret is an optional control.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-NEXTCLOUD-CVE-2026-55640-001
Limitations
Reads nextcloud-mcp-server in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock, uv.lock, package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (pdm.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.
References
- CVE: CVE-2026-55640
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP07:2025 (Insufficient Authentication & Authorization)
- OWASP Agentic Top 10: ASI03 (Identity and Privilege Abuse), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-AUTH-01 (Missing Authentication)
- CSA AI Controls Matrix (AICM): IAM-01, STA-08
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-NEXTCLOUD-CVE-2026-55640-001.md: the page then shows that text, with the registry reference appended under it.