Summary
CVE-2026-131857 is a denial-of-service vulnerability (CWE-754, Improper Check for Unusual or Exceptional Conditions) in Supergateway, the supercorp-ai MCP transport gateway, versions 4.2.0 through 4.2.2. An unauthenticated remote attacker can crash the gateway when it runs in stdio-to-SSE mode. The CVE record lists a CVSS v4.0 score of 8.7 (High) and a CVSS v3.1 score of 7.5 (High).
Technical details
- Root cause: In stdio-to-SSE mode, the gateway does not safely handle special object property names supplied as a
sessionId. Values inherited from the object prototype, such astoStringorconstructor, are treated as if they were valid sessions. - Trigger conditions: The gateway runs in stdio-to-SSE mode. No authentication is required.
- Attack vector: The attacker sends a POST request to the gateway’s message endpoint with
sessionIdset totoStringorconstructor. - Impact: An unhandled TypeError is raised, which terminates MCP sessions and crashes the gateway. The result is loss of availability. The CVE record does not indicate any confidentiality or integrity impact.
- The researcher’s public report is upstream issue #378. It describes the crash as ending the whole gateway process and every attached MCP session.
Affected software
- Supergateway (npm package
supergateway, vendor supercorp-ai) 4.2.0 through 4.2.2, stdio-to-SSE mode.
Severity
- CVSS v4.0: 8.7 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Mitigation and recommended actions
- Immediate: Check the upstream issue and the project’s releases for a version later than 4.2.2 that fixes this flaw. The CVE record references a fix commit, but we could not confirm a specific patched release number.
- Workarounds: Do not expose stdio-to-SSE gateways directly to untrusted networks. Restrict access to the gateway’s message endpoint with a firewall, or place it behind an authenticating reverse proxy. Reject requests whose
sessionIdis not a gateway-issued value. Run the gateway under a process supervisor that restarts it automatically after a crash. - Inventory any internet-exposed Supergateway instances running versions 4.2.0 through 4.2.2.

