SecurityContext

CVE-2025-59155: hackmd-mcp - Server-Side Request Forgery

  • Cve: CVE-2025-59155
  • Name: hackmd-mcp - Server-Side Request Forgery
  • 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.
  • Impact: Attackers can access internal network services, perform reconnaissance, and bypass network access controls.
  • Remediation: Update to version 1.5.0 or later, or apply mitigations like switching to stdio mode, restricting outbound network access, or filtering Hackmd-Api-Url inputs.
  • Vulnerability type: server_side_request_forgery
  • Vulnerability impact: server_side_request_forgery
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.9
  • Cvss vector: 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00356
  • Epss percentile: 0.29887
  • Assignee: [email protected]
  • Published at: 2025-09-15T17:15:36Z
  • Age in days: 435
  • Modified at: 2026-06-17T09:45:38Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-59155
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-918Server-Side Request Forgery

References

UrlSourceTags
https://github.com/yuna0x0/hackmd-mcp/commit/43936c78a5bb3dedc74e8f080607a1125caa8c13nvd
https://github.com/yuna0x0/hackmd-mcp/security/advisories/GHSA-g5cg-6c7v-mmpwnvd

Projects

RepositoryLink kindsIndexedUrl
yuna0x0/hackmd-mcpcommit, fix, package, releases, security_advisoryyes/v1/repositories/yuna0x0/hackmd-mcp

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts