# CVE-2025-59155: hackmd-mcp server-side request forgery in HTTP transport mode

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 42% of CVEs (2026-11-30)
- Published: 2025-09-15T16:56:57.006Z
- Modified: 2026-06-17T09:45:38.303Z
- Also known as: GHSA-g5cg-6c7v-mmpw
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- yuna0x0 hackmd-mcp: >= 1.4.0, < 1.5.0
- hackmd-mcp (npm): from 1.4.0 before 1.5.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/yuna0x0/hackmd-mcp/security/advisories/GHSA-g5cg-6c7v-mmpw> (web)
- <https://github.com/yuna0x0/hackmd-mcp/commit/43936c78a5bb3dedc74e8f080607a1125caa8c13> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59155> (advisory)
- <https://github.com/yuna0x0/hackmd-mcp> (package)
- <https://github.com/yuna0x0/hackmd-mcp/releases/tag/v1.5.0> (web)

## Sources

- CVE List: [CVE-2025-59155](https://www.cve.org/CVERecord?id=CVE-2025-59155), CVE Terms of Use, modified 2025-09-15
- GitHub Advisory Database: [GHSA-g5cg-6c7v-mmpw](https://github.com/advisories/GHSA-g5cg-6c7v-mmpw), CC-BY-4.0, modified 2025-09-15
- NVD: [CVE-2025-59155](https://nvd.nist.gov/vuln/detail/CVE-2025-59155), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59155 · Whole record: https://cve.day/CVE-2025-59155.json · Rebuilt by cve.day 2026-11-25T22:59:04.666Z
