Vulnerability in netlicensing-mcp
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-54446 has been found in netlicensing-mcp.
Attackers can target a specific entry point like GET /core/v2/rest/product over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 8.1/10.
What to do: upgrade netlicensing-mcp to 0.1.6 or later.
If unsure, ask your IT team or search "netlicensing-mcp CVE-2026-54446" on the vendor's site.
CVE-2026-54446 (netlicensing-mcp) — CWE-306 / CVSS v3 8.1
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: GET /core/v2/rest/product / Authorization header / ApiKeyMiddleware / NETLICENSING_API_KEY
Patched: 0.1.6 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-306) exists in netlicensing-mcp. Attackers reach the vulnerable code path via GET /core/v2/rest/product without authentication.
Check the vendor advisory for the affected versions of netlicensing-mcp. Attack surface: GET /core/v2/rest/product / Authorization header / ApiKeyMiddleware / NETLICENSING_API_KEY.
Severity: High (CVSS 8.1/10). Successful exploitation can lead to full system takeover.
Update to 0.1.6.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual GET /core/v2/rest/product requests with malformed payloads or SQL meta-characters. Run grep -r 'netlicensing-mcp' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'netlicensing-mcp' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
netlicensing-mcpを grep し、稼働しているサービス・バージョンを把握する。 -
2
Hunt for indicators of compromisedetect
grep 'GET /core/v2/rest/product' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /core/v2/rest/productへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3
Apply patchpatch
Upgrade netlicensing-mcp to 0.1.6ステージング環境で 0.1.6 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4
Post-deployment verificationverify
Replay attack against GET /core/v2/rest/product on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipnetlicensing-mcp |
< 0.1.6→ 0.1.6 |
0.1.6 |
| PyPInetlicensing-mcp |
< 0.1.6→ 0.1.6 |
0.1.6 |
Original description The description as published by the source.
Unauthenticated Use of Server-Side NetLicensing API Key in HTTP Mode
Summary
When netlicensing-mcp is run in HTTP transport mode, the ApiKeyMiddleware fails to enforce authentication: requests that carry no client API key are unconditionally forwarded to the next handler (server.py:1427). The downstream HTTP client then falls back to the server operator's NETLICENSING_API_KEY environment variable (client.py:30) and uses it to authenticate every upstream call to the NetLicensing REST API. An unauthenticated network attacker can therefore invoke any MCP tool — including product listing, license creation/modification, and destructive delete operations — entirely under the operator's identity and account quota. CVSS 3.1 Base Score: 8.1 (High).
Details
The HTTP transport is started in src/netlicensing_mcp/server.py around line 1430 via mcp.streamable_http_app(), and ApiKeyMiddleware is registered immediately after (line 1431). The middleware implementation (lines 1412–1427) attempts to extract a per-request API key from either the x-netlicensing-api-key header or the ?apikey= query parameter. However, if neither source provides a key, the middleware takes no enforcement action and simply calls return await call_next(request) (line 1427), passing the unauthenticated request downstream.
The downstream client module (src/netlicensing_mcp/client.py) uses a Python ContextVar named api_key_ctx with a default of `os.getenv("NETLICENSING_API…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package pypi.org
- web github.com
- web github.com
- web github.com
- web github.com