MCP 服务 2026-09-30 06:01 UTC
fhir-mcp-server
由提交人 Lilvamp237 提交,主要更新类型为:常规更新与维护。提交说明:Validate FHIR Resource ID and Operation to Prevent Path Traversal (#51)。对项目做了常规维护与小幅调整。
Commit提交信息原文
Validate FHIR Resource ID and Operation to Prevent Path Traversal (#51) * fix: validate FHIR resource id and operation Reject path separators, dot-segments, and percent-encoded traversal sequences in resource ids and operation names so they cannot escape the configured FHIR base path. Also bind docker-compose exposed ports to localhost only to reduce attack surface. Add unit and e2e test coverage for the new id/operation validation. * fix: address review feedback and patch a security issue in a dependency - Add validate_inputs() to combine resource type/id/operation validation into a single call instead of repeating the inline `or` chain - Cap validate_resource_type at 64 chars, matching validate_resource_id and validate_operation - Update the anyio package to a newer version that fixes a critical security bug our scanner flagged in the old one * Update requirements.txt * Update src/fhir_mcp_server/utils.py * Update tests/unit/test_utils.py * Update copyright year in conftest.py * Update copyright year in test_tools.py