Skip to content

v1.2.0

Latest

Choose a tag to compare

@zcaceres zcaceres released this 25 Nov 21:17
· 7 commits to main since this release
333a5af

Security Fixes

  • Path allowlist hardening (#104): Replaced prefix matching in isWithinDirectory() with path.relative boundary checks (closing sibling-directory bypasses) and added realpath symlink resolution in assertPathAllowed(). Fixed Markdownify.get() to use the expandHome-resolved path for filesystem I/O.
  • Private URL temp files (#104): Switched URL downloads from predictable timestamp filenames in os.tmpdir() to private fs.mkdtempSync directories with randomUUID() + exclusive file creation and finally cleanup.
  • SSRF & git-repo-to-markdown hardening (#155): Replaced private-ip (resolving GHSA-9h3q-32c7-r533) with built-in node:net BlockList + fail-closed async DNS resolution (dns.promises.lookup(..., { all: true })), closing localhost, bracketed IPv6, hex-compressed IPv4-mapped IPv6, multicast, NAT64, and DNS bypasses across URL tools and validateRepoUrl(). Blocked scp-style SSH shorthand and option injection via branch.

Bug Fixes & Improvements

  • YouTube & Bing URL routing (#156, credit @lufzle / #131): Pass allowlisted post-redirect https://www.youtube.com/watch?v=... and https://www.bing.com/search?q=... URLs directly to markitdown so YouTube transcripts and Bing SERP parsing work without regressing Wikipedia/StackOverflow to 403.
  • URL PDF extension inference (#104): Parse new URL(url).pathname so .pdf?query#fragment URLs infer pdf.
  • Reproducible Python & JS dependencies (#150, #154): Upgraded @modelcontextprotocol/sdk (1.32.2), repomix (1.18.1), zod (4.6.7), typescript (7.0.2), markitdown (0.1.9), youtube-transcript-api (1.2.4), certifi, urllib3, idna, and soupsieve (4.0). Local setup and Docker now install locked Python dependencies via uv sync --locked (requires Node 22+ and uv on PATH).
  • CI & packaging (#152, #116): Added GitHub Actions CI workflow (.github/workflows/ci.yml), npm repository metadata, and synced MCP serverInfo.version to 1.2.0.