GHSA-7q9c-hpx7-9cwm: TypeSpec: Unauthenticated Remote Shutdown of Spector Mock Server via POST /.admin/stop
@typespec/spector registers a POST /.admin/stop HTTP route with no authentication, authorization token, Origin check, or IP-source restriction. Any network-reachable client can send a single unauthenticated POST request to terminate the mock server process. Because the server binds to 0.0.0.0 by default (all interfaces), this endpoint is exposed to any host that can reach the server’s port—not just localhost—making a complete denial-of-service trivially achievable with one HTTP request. Severity is High (CVSS 7.5).
References
- github.com/advisories/GHSA-7q9c-hpx7-9cwm
- github.com/microsoft/typespec/commit/30d6f6598dd796e2d6aea038139d29b91e6a2da7
- github.com/microsoft/typespec/commit/39f8f0230bb59b17464d8173b6bff4ddee8082a1
- github.com/microsoft/typespec/pull/11274
- github.com/microsoft/typespec/releases/tag/@typespec/spector@0.1.0-alpha.27
- github.com/microsoft/typespec/security/advisories/GHSA-7q9c-hpx7-9cwm
Code Behaviors & Features
Detect and mitigate GHSA-7q9c-hpx7-9cwm with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →