markdownify-mcpにパス制限を回避される脆弱性、許可外のファイルが読まれるおそれ
Summary
markdownify-mcpの1.2.0より前のバージョンには、パスの許可判定の不備により、許可されていない隣接ディレクトリのファイルを読まれるおそれがある脆弱性があります。CVSS v4.0のスコアは8.7です。修正版の1.2.0以降に更新してください。プロンプトインジェクションを経由しても悪用されるおそれがあります。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
markdownify-mcpの1.2.0より前のバージョンには、パスの許可判定の不備により、許可されていない隣接ディレクトリのファイルを読まれるおそれがある脆弱性があります。CVSS v4.0のスコアは8.7です。修正版の1.2.0以降に更新してください。プロンプトインジェクションを経由しても悪用されるおそれがあります。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| zcaceresmarkdownify-mcp |
< 1.2.0→ 1.2.0 |
1.2.0 |
Original description The description as published by the source.
markdownify-mcp before 1.2.0 contains a path traversal vulnerability in isWithinDirectory() that allows attackers to bypass MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. Attackers invoking local-file conversion tools directly or via prompt injection can target sibling directories sharing an allowed prefix to read files outside the allowlist.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com