TypeSpec: Unauthenticated Remote Shutdown of Spector Mock Server via POST /.admin/stop
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@typespec/spector registers an unauthenticated POST /.admin/stop HTTP route that triggers process.exit(0), shutting down the server immediately. The server listens on 0.0.0.0 by default, exposing this endpoint to any network client. There is no authentication, authorization token, Origin header check, or IP allowlist protecting this critical function. The vulnerability is a Missing Authentication for Critical Function (CWE-306) and affects version 0.1.0-alpha.27. The attack chain involves sending a single unauthenticated POST request to the exposed endpoint, causing a denial of service by stopping the server process.
Potential Impact
An unauthenticated remote attacker with network access to the server port can cause a complete denial of service by shutting down the mock server process with a single HTTP POST request. This disrupts development or CI/CD pipelines relying on the server, especially in environments where the port is exposed to untrusted networks. The default binding to 0.0.0.0 and lack of authentication means there is no built-in protection, increasing the risk of exploitation in shared or cloud environments.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7q9c-hpx7-9cwm
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a9c2630acd9273b49fc9755
Added to database: 09/05/2026, 14:24:48 UTC
Last enriched: 09/07/2026, 10:52:31 UTC
Last updated: 10/01/2026, 23:09:16 UTC
Views: 42
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.