Skip to content

arikusi/deepseek-mcp-server

v2.2.0 Security

This release includes 1 security fix for security teams reviewing exposed deployments.

Published 21d MCP Developer Tools
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →
This release patches 1 known CVE

Topics

ai claude-code deepseek deepseek-v4 gemini-cli llm
+3 more
mcp mcp-server typescript

Summary

AI summary

ReDoS guard on response_schema regex patterns prevents unsafe patterns from being compiled.

Full changelog

Additive feature release for deepseek_chat, plus a security hardening.

Added

  • response_schema: server-side JSON Schema validation with bounded repair retries (default 2, RESPONSE_SCHEMA_MAX_RETRIES to tune, 0 disables). Returns the first schema-valid object, or the last attempt flagged schema.valid=false instead of silently coercing a wrong shape. Implies JSON output.
  • Self-contained per-request usage/cost in structuredContent.request (token counts, cache hit/miss, cost_usd), aggregated across repair attempts.
  • Audit fields: effective and a top-level fallback object so a silent model fallback is visible to callers.

Fixed

  • json_mode + thinking: content that arrived fenced or wrapped in chain-of-thought is now deterministically recovered as clean JSON (no extra API call); unrecoverable output sets json_parse_error.

Security

  • ReDoS guard on response_schema regex patterns: an unsafe pattern such as ^(a+)+$ is now rejected up front instead of blocking the event loop. Screened with redos-detector before compilation.

Thanks to @timbrigham for the feature work in #32. No worker changes; the hosted endpoint is unaffected.

Security Fixes

  • ReDoS guard on response_schema regex patterns rejects unsafe patterns such as ^(a+)+$ before compilation

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track arikusi/deepseek-mcp-server

Get notified when new releases ship.

Sign up free

About arikusi/deepseek-mcp-server

MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.

All releases →

Related context

Earlier breaking changes

  • v1.8.0 Requires Node.js 20 or newer; Node 18 support dropped.

Beta — feedback welcome: [email protected]