CVE-2025-59155

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-59155
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-59155.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-59155
Aliases
Published
2025-09-15T17:15:36Z
Modified
2025-09-17T05:20:32.908283Z
Summary
[none]
Details

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 ALLOWEDHACKMDAPI_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.

References

Affected packages

Git / github.com/yuna0x0/hackmd-mcp

Affected ranges

Type
GIT
Repo
https://github.com/yuna0x0/hackmd-mcp
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.0.7
v1.1.0
v1.1.1
v1.1.3
v1.1.4
v1.1.5
v1.1.6
v1.2.0
v1.2.1
v1.2.2
v1.2.3
v1.2.4
v1.2.6
v1.2.7
v1.2.8
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2