This release includes 2 security fixes for security teams reviewing exposed deployments.
Published 24d
MCP Data & Storage
✓ No known CVEs patched
This release patches 2 known CVEs
Topics
anthropic
claude
gleif
go
legal-entity-identifier
lei
+3 more
mcp
mcp-server
model-context-protocol
Affected surfaces
auth
rce_ssrf
Summary
AI summaryRefactored domain identifier types to typed values, split client.go for clarity, bumped go-sdk dependency, and fixed redirect handling security issues.
Full changelog
Changed
- Internal refactor: domain identifier types (
LEI,BIC,ISIN,Country,IssuerID) withParse*constructors at the MCP boundary. Client method signatures now take typed values instead of raw strings; format validation lives in the type system. Public API ofinternal/gleifpackage is unchanged for MCP callers (tool surface identical) but Go-package consumers will see typed parameters. - Internal refactor:
client.gosplit intoclient.go(HTTP plumbing),client_lookup.go,client_search.go,client_relationships.go,client_validate.goby concern. Plus decomposed complex methods (doRequest,Autocomplete,GetRelationships,GetBatchLEI) into single-responsibility helpers and replaced the 13-arm handlerswitchwith a map dispatch. Result: every source file scores at Green (≥9.0) or Optimal (10.0) on CodeScene Code Health. - Bumped
github.com/modelcontextprotocol/go-sdkto v1.6.0.
Fixed
- API client refuses all redirects via
CheckRedirectreturninghttp.ErrUseLastResponse. The GLEIF API does not redirect under normal operation; without this guard, a misconfiguredBaseURLor a wiki/proxy returningLocation: http://169.254.169.254/...would pivot a lookup into a fetch against cloud metadata or other link-local internal services. (security) - LEI record cache no longer returns aliased pointers. Cache now deep-copies on both store and retrieval. (correctness)
GetLEIcold-path fetches now collapse viasingleflight.Group, closing the rate-limit-amplification surface. (security)
Breaking Changes
- Client method signatures now require typed domain identifier values (`LEI`, `BIC`, `ISIN`, `Country`, `IssuerID`) instead of raw strings.
Security Fixes
- API client now refuses all redirects by returning `http.ErrUseLastResponse` from `CheckRedirect`, preventing mis‑configured BaseURL or proxy redirection attacks.
- Cold‑path `GetLEI` fetches are deduplicated with `singleflight.Group`, eliminating rate‑limit amplification.
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
About olgasafonova/gleif-mcp-server
Access the Global Legal Entity Identifier (LEI) database for company verification, KYC, and corporate ownership research via GLEIF's public API.
Related context
Beta — feedback welcome: [email protected]