F-04 · CWE-328 · CISA-ADP 9.8 Critical

CVE-2026-51996: MD5-based storage namespace hardening in mcp-remote

mcp-remote versions 0.0.14 through 0.1.38 use MD5-derived prefixes to separate per-server OAuth state and token files.

CISA-ADP CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Range in the CVE record
0.1.16 through 0.1.38
Range in the advisory
0.0.14–0.1.38
Evidence
Defense-in-depth / corrected
Record published
24 September 2026updated 29 September 2026
Fix
No fix on record.ledger of 4 December 2026

The CVE record

An issue in geelen mcp-remote 0.1.16 through 0.1.38 allows a remote attacker to execute arbitrary code via the src/lib/utils.ts and the getServerUrlHash function

cve.org · NVD · published by MITRE as the CNA

Check your version

RecordRange in the CVE recordRange in the advisoryYour version
CVE-2026-51994
F-01 · SSRF via unvalidated resource_metadata URL
0.1.32 through 0.1.38 0.1.32–0.1.38 —
CVE-2026-51995
F-02 · Blind SSRF via authorization_servers[]
0.1.32 through 0.1.38 0.1.32–0.1.38 —
CVE-2026-51996
F-04 · MD5-based storage namespace hardening
0.1.16 through 0.1.38 0.0.14–0.1.38 —
CVE-2026-51997
F-08 · Internal-address validation before browser launch
0.1.16 through 0.1.38 0.1.16–0.1.38 —
—
F-09 · OAuth credentials stored in cleartext
— 0.0.11–0.1.38 —
—
F-10 · Redirect following bypasses one-time URL validation
— 0.1.32–0.1.38 —
CVE-2026-52001
F-11 · Explicit token-origin binding as transport hardening
0.1.18 through 0.1.38 0.0.18–0.1.38 —

Research update: 4 December 2026

The observations for all seven original records were retained in the repeated default scenarios on mcp-remote 0.17.4. The 0.17.3 static package assessment covers the preceding release. The cache-r4-scope series exercised proactive refresh and left the new SDK sign-in fallback unmeasured. Assessment, results and limits.

The advisory: F-04

Summary

mcp-remote versions 0.0.14 through 0.1.38 use MD5-derived prefixes to separate per-server OAuth state and token files.

Security relevance

MD5 does not provide modern collision resistance and is an unsuitable primitive for a security-sensitive namespace. Replacing it would reduce the chance of future namespace ambiguity and make the construction easier to reason about.

Correction and limitations

The original v1.0.0 text overstated the practical mechanism. A chosen-prefix collision lets an attacker construct suffixes for two attacker-chosen prefixes; it does not demonstrate a practical collision against an already fixed trusted identifier. That latter claim would require a second-preimage result. No token namespace takeover or real-token access was demonstrated.

Classification

Remediation

Replace MD5 with a collision-resistant construction such as SHA-256 and include the full canonical server identity and configuration discriminator in the namespace. Treat a hash as a filename encoding, not as proof of server identity.

F-04-md5-token-isolation.md at bbadb81

In the public record

Acted on: 18 · Copies: 37 · Reply to the author: 4 · Divergences: 15 · Registries and databases: 19 · Written up: 1. The docket holds every entry with its date, source and status.

Acted on

Divergences