Skip to content
HighVulnerability

CVE-2025-59155: hackmd-mcp server-side request forgery via hackmdApiUrl in HTTP mode

Identifier
CVE-2025-59155
Published
Record updated
View JSON
Affected
  • hackmd-mcp >= 1.4.0, < 1.5.0
Fixed in
1.5.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

hackmd-mcp versions from 1.4.0 before 1.5.0 contain a server-side request forgery (SSRF) flaw when run in HTTP transport mode. The server accepts arbitrary hackmdApiUrl values from the Hackmd-Api-Url HTTP header or a base64-encoded JSON query parameter without validation, letting attackers redirect outbound API requests to internal network services, reach internal endpoints, and bypass network access controls. The stdio transport mode is not affected.

Mitigation

Fixed in 1.5.0, which enforces allowed endpoints and supports the ALLOWED_HACKMD_API_URLS environment variable. Users should update to 1.5.0 or later, or apply documented mitigations: switch to stdio mode, restrict outbound network access, or filter the Hackmd-Api-Url header and related query parameter via a reverse proxy.