Skip to content

AAK-MCP-NETLICENSING-CVE-2026-54446-001: netlicensing-mcp below 0.1.8 (a path-traversed product number reads API tokens in plaintext; unauthenticated /mcp falls back to the operator's API key below 0.1.6)

Severity
CRITICAL
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/container_image_pins.py, agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
NetlicensingMcpAuthFallback

What it detects

NetLicensing MCP Server (netlicensing-mcp on PyPI, and the images ghcr.io/labs64/netlicensing-mcp and labs64/netlicensing-mcp) has two authorization flaws. Before 0.1.8, netlicensing_get_product puts the caller's product_number into the REST path that nl_get() requests with no path-segment check, so a value such as ../token reaches the token endpoint. That response is serialized without the token redaction the token tools apply (0.1.7 added it; earlier releases redact nothing), so an MCP client holding a non-administrative API key reads API keys and shop URLs in plaintext, and an administrative key recovered this way gives read, write and delete access to the NetLicensing account (CVE-2026-57496, CVSS 9.6, CWE-22). Checked in the wheels: every release from 0.0.6 builds the path unchecked, and 0.1.8 (b8fd0ea) validates each path segment before the request is built. Before 0.1.6, a /mcp request that carries none of x-netlicensing-api-key, Authorization: Bearer or the apikey query parameter passes straight through ApiKeyMiddleware, and api_key_ctx then falls back to the operator's NETLICENSING_API_KEY, so an unauthenticated caller runs every licensing tool, the destructive ones included, as the operator (CVE-2026-54446, CVSS 8.1, CWE-306).

How to fix

Upgrade netlicensing-mcp, or the image, to 0.1.8 or later and pin it. Then rotate the NetLicensing API keys the server could reach, since any token was readable through the traversal, and treat licensing objects changed while an affected version was reachable as suspect. Fail closed on a missing credential rather than substituting the server's own.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-NETLICENSING-CVE-2026-54446-001

Limitations

Reads netlicensing-mcp below 0.1.8 in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock and uv.lock lockfiles, taking the lowest version a range allows, and the two images below 0.1.8 in compose files, Kubernetes manifests, Helm values, Dockerfiles and MCP configs. A reference must state a version to be reported: latest, the two-part image tag 0.1 and the README's unpinned uvx netlicensing-mcp all resolve to 0.1.10, which is fixed. 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-54446, CVE-2026-57496
  • OWASP MCP Top 10: MCP01:2025 (Token Mismanagement & Secret Exposure), 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-AGENT-02, ADV-INJECT-06 (Tool Param Path Traversal)
  • CSA AI Controls Matrix (AICM): IAM-01, IVS-04, 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-NETLICENSING-CVE-2026-54446-001.md: the page then shows that text, with the registry reference appended under it.