CVE-2025-59155: hackmd-mcp server-side request forgery via hackmdApiUrl in HTTP mode
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-59155
- Published
- Record updated
- 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.
Topics
Related items
- MediumCVE-2026-143864: InfiniFlow RAGFlow template injection in Canvas StringTransform HandlerSimilar attack, NVD/CVE Database
- MediumCVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub ActionsSimilar attack, StepSecurity Blog
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database