@typespec/spector · TypeSpec: Unauthenticated Remote Shutdown of Spector Mock Server via POST /.admin/stop
Affects @typespec/spectorSource GCVE Database
CVSS 7.5 High : upgrade to 0.1.0-alpha.27 soon.
Data as of 7 Sep 2026, 10:52 UTC
- Patch
- Available – fixed in 0.1.0-alpha.27
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWhat to do
Upgrade @typespec/spector to 0.1.0-alpha.27.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@typespec/spector | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should update to a fixed version of @typespec/spector when released. Until patched, operators must restrict network access to the server port using external firewall rules or network segmentation to prevent untrusted clients from reaching the /.admin/stop endpoint. The vendor advisory or repository should be monitored for official fixes and updates.
Description
The @typespec/spector package version 0.1.0-alpha.27 contains a high-severity vulnerability (CVSS 7.5) where an unauthenticated HTTP POST request to the /.admin/stop endpoint can remotely shut down the mock server. The server binds to all network interfaces (0.0.0.0) by default, exposing this endpoint to any reachable client without authentication or IP restrictions. This allows an attacker to cause a complete denial of service by terminating the server process with a single request.
References
- github.com/microsoft/typespec/security/advisories/GHSA-7q9c-hpx7-9cwm (opens in a new tab)
- github.com/microsoft/typespec/pull/11274 (opens in a new tab)
- github.com/microsoft/typespec/commit/30d6f6598dd796e2d6aea038139d29b91e6a2da7 (opens in a new tab)
- github.com/microsoft/typespec/commit/39f8f0230bb59b17464d8173b6bff4ddee8082a1 (opens in a new tab)
- github.com/microsoft/typespec (opens in a new tab)
- github.com/microsoft/typespec/releases/tag/@typespec/spector@0.1.0-alpha.27 (opens in a new tab)