hackmd-mcp server-side request forgery in HTTP transport mode
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
hackmd-mcp is a Model Context Protocol server for integrating HackMD's note-taking platform with AI assistants. From 1.4.0 to before 1.5.0, hackmd-mcp contains a server-side request forgery (SSRF) vulnerability when the server is run in HTTP transport mode. Arbitrary hackmdApiUrl values supplied via the Hackmd-Api-Url HTTP header or a base64-encoded JSON query parameter are accepted without validation, allowing attackers to redirect outbound API requests to internal network services, access internal endpoints, perform network reconnaissance, and bypass network access controls. The stdio transport mode is not affected because it only accepts stdio requests. The issue is fixed in version 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 such as switching to stdio mode, restricting outbound network access, or filtering the Hackmd-Api-Url header and related query parameter via a reverse proxy.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| yuna0x0 | hackmd-mcp | 1.4.0 to before 1.5.0 | 1.5.0 | Patch available | CNA |
| — | hackmd-mcp (npm) | 1.4.0 to before 1.5.0 | 1.5.0 | Patch available | GHSA-g5cg-6c7v-mmpw |
- hackmd-mcp Vendoryuna0x0 Affected 1.4.0 to before 1.5.0 Fixed in 1.5.0 Patch available CNA
- hackmd-mcp (npm) Vendor— Affected 1.4.0 to before 1.5.0 Fixed in 1.5.0 Patch available GHSA-g5cg-6c7v-mmpw
Remediation
- Fix · CNA hackmd-mcp (yuna0x0) Fixed in 1.5.0
- Fix · GHSA-g5cg-6c7v-mmpw hackmd-mcp (npm) Fixed in 1.5.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59155
- 2026-10-03 Alias added: GHSA-g5cg-6c7v-mmpw
References
Sources
- CVE-2025-59155 · CVE Program
- CVE-2025-59155 · NVD
- FIRST EPSS
- GHSA-g5cg-6c7v-mmpw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences