This release includes 3 security fixes for security teams reviewing exposed deployments.
Topics
+3 more
Affected surfaces
Summary
AI summaryFixed multiple security vulnerabilities including cache poisoning, path injection, and raw body leakage in validation APIs.
Full changelog
Fixed (security)
validate_leicache poisoning: only cache definitive 404 responses; transient upstream errors (5xx, timeout, rate-limit retry exhaustion) no longer poison the 24-hour validation cache. Previously a single concurrent client saturating the rate limiter could mark a targeted LEI asValid=falsefor the rest of the day. (168b2a0)get_lei_issuerpath injection: validateissuer_idagainst^[A-Z0-9]{4,32}$andurl.PathEscapebefore URL interpolation; closes a path-traversal pivot from/lei-issuers/to other GLEIF endpoints. Tool spec gainsPattern,MinLength=4,MaxLength=32so the MCP framework rejects malformed IDs client-side too. ISIN, BIC, and country tool inputs now validated as full-regex matches (length-only checks were insufficient);search_by_isinroutes input throughurl.Values.Encode()instead of rawfmt.Sprintf. (8d96c05)- HG-2 raw-body leak: API error responses no longer echo raw 4xx response body verbatim to MCP callers; replaces with
http.StatusText. Restores compliance with hard gate HG-2. (1c91a59)
Found by Carlini-style autonomous vulnerability scaffold sweep across the MCP portfolio.
Full Changelog: https://github.com/olgasafonova/gleif-mcp-server/compare/v0.7.0...v0.8.0
Security Fixes
- `validate_lei` cache poisoning fix: only definitive 404 responses are cached; transient upstream errors no longer poison the validation cache.
- `get_lei_issuer` path injection mitigation: `issuer_id` now validated against regex ^[A-Z0-9]{4,32}$ and URL‑escaped before interpolation; prevents traversal from /lei-issuers/ to other endpoints. Added schema constraints (Pattern, MinLength=4, MaxLength=32).
- HG-2 raw-body leak fix: API error responses no longer echo raw 4xx bodies; they now return `http.StatusText` for compliance.
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]