We actively support the following versions of OpenZIM MCP with security updates:
| Version | Supported |
|---|---|
| 3.x | Yes |
| older majors | No (upgrade to the latest release) |
| < 2.0 | No (the v1.x window closed when v2.5.0 shipped, 2026-06-18) |
The supported row tracks the current major automatically (release-please bumps it), so a major release never leaves this table pointing at a retired line. "Supported" means the latest patch release of that major line: earlier patches on the line are not separately maintained, and a fix ships forward in a new patch release rather than being reissued against an older one. Upgrading to the newest patch is therefore how you receive one.
Individual features are retired on their own schedule, independent of the table above. The Deprecations in flight table lists each feature that still works but is scheduled for removal, the release that removes it, and its replacement.
We take security vulnerabilities seriously and appreciate your help in keeping OpenZIM MCP secure.
Please DO NOT report sensitive security vulnerabilities through public GitHub issues.
Instead, please report them privately using GitHub Private Vulnerability Reporting:
- Go to the Security tab of this repository
- Click "Report a vulnerability"
- Fill out the vulnerability report form
- Submit the report
GitHub's private advisories support encrypted communication, attachments, and coordinated disclosure with maintainers, and are the preferred channel. If you cannot use them, email the maintainer at c@meron.io. There is no PGP channel.
For general security improvements, hardening suggestions, or non-exploitable security-related issues, you can:
- Open a public GitHub issue using the "Security Vulnerability Report" template
Please include as much information as possible:
- Description: Clear description of the vulnerability
- Impact: What could an attacker accomplish?
- Reproduction: Step-by-step instructions to reproduce
- Environment: OS, Python version, OpenZIM MCP version
- ZIM Files: Information about test files used (if relevant)
- Proof of Concept: Code or commands demonstrating the issue
- Suggested Fix: Ideas for how to address the vulnerability
- References: Links to similar vulnerabilities or security resources
- CVSS Score: If you can calculate one
We are committed to responding to security reports promptly:
| Timeline | Action |
|---|---|
| 24 hours | Initial acknowledgment of your report |
| 72 hours | Initial assessment and severity classification |
| 7 days | Detailed response with our planned approach |
| 30 days | Target for fix development and testing |
| 45 days | Target for public disclosure (coordinated) |
Note: Complex vulnerabilities may require more time. We will keep you updated on our progress.
We classify vulnerabilities using the following criteria:
- Remote code execution
- Privilege escalation to system level
- Data exfiltration of sensitive information
- Local privilege escalation
- Authentication bypass
- Significant data exposure
- Information disclosure
- Denial of service
- Path traversal (limited impact)
- Minor information leaks
- Security misconfigurations
- Theoretical attacks with high complexity
OpenZIM MCP implements several security measures:
- Comprehensive path validation to prevent directory traversal
- Input sanitization for all user-provided data
- Type checking and validation using Pydantic
- Restricted file access to allowed directories only
- Secure error handling that doesn't leak sensitive information
- Resource limits to prevent abuse
- Regular security scanning with bandit
- Dependency vulnerability scanning
- Type safety with mypy
- Comprehensive testing including security tests
- Pre-commit hooks for security checks
- Automated security scanning in CI/CD
- Regular dependency updates
- Code review requirements
- ZIM files are processed using the libzim library
- Archive text is untrusted input to the calling model, and nothing filters it
for prompt injection. Simple-mode (
zim_query) responses wrap it in a provenance fence that labels it as reference data; the fence does not filter what is inside it. See the retrieved-content trust boundary for where the fence applies and where it does not - Response sizes are capped: text bodies by
max_content_length, and binary fetches at 10 MB by default, withzim_getrefusing a binarymax_content_lengthabove 25 MB
- All file paths are validated against allowed directories
- Path traversal attacks are prevented through secure path resolution
- Symbolic links are handled safely
- Cache keys are built server-side from arguments that have already been validated; callers never supply one
- Cached content has appropriate TTL limits
- Cache size is limited to prevent memory exhaustion
- Run OpenZIM MCP with minimal required privileges
- Use allowed directories to restrict file access
- Monitor logs for suspicious activity
- Keep dependencies updated
- Only use ZIM files from trusted sources
- Verify ZIM file integrity when possible
- Be cautious with user-provided ZIM files
- Use environment variables for sensitive configuration
- Avoid logging sensitive information
- Implement appropriate access controls
- Server instructions set through
OPENZIM_MCP_INSTRUCTIONSorOPENZIM_MCP_INSTRUCTIONS_PATH(3.5+) are sent unfenced to every client that connects. Keep secrets out of them, and restrict who can edit the file: whoever can change it can steer every connected model. See Server instructions
The HTTP transport (--transport http) is the only network-exposed surface.
Its authentication is controlled by two environment variables:
OPENZIM_MCP_AUTH_TOKEN— the Bearer token required on every request to the MCP endpoint. Set this whenever the server binds a non-loopback host. An empty or whitespace-only value is rejected at startup (an empty token would authenticate every request); unset the variable entirely to run localhost-only without auth. So is a value no client could ever present: one with leading or trailing whitespace — typically the newline at the end of a token file written byopenssl rand -hex 32 > token— or with a control character, either of which would otherwise answer every request with a 401. Two paths are deliberately not token-gated: the/healthzand/readyzprobes are public (they expose no archive data), and a genuine CORS preflight from an allow-listed origin is answered by the outer CORS layer before auth runs, because browsers never attachAuthorizationto a preflight. A bareOPTIONSwith no preflight headers still gets a 401, and neither path mints a session.OPENZIM_MCP_INSECURE_DISABLE_AUTH=1— an explicit, operator-acknowledged escape hatch that allows a non-loopback bind without a token. Use it only on closed networks (Docker bridge, Tailscale-only, isolated LAN) where the network itself is the trust boundary. The server logs aWARNINGnaming the bound host on every startup. It does not apply to--transport sse, which remains localhost-only. Anyone who can reach the address can call every tool — never enable this on an internet-reachable interface.
When binding 0.0.0.0 (all interfaces) without setting
OPENZIM_MCP_ALLOWED_HOSTS, DNS-rebinding Host validation is automatically
disabled (because no single client-facing Host can be pinned) and a warning is
logged. The Origin check stays on: a browser request whose Origin is not in
OPENZIM_MCP_CORS_ORIGINS is refused with 403, which is what stops a
DNS-rebinding page; beyond that, the Bearer token is the access control. Pin
OPENZIM_MCP_ALLOWED_HOSTS to your reachable hostname(s) to re-enable Host
validation.
We follow responsible disclosure practices:
- Private Reporting: Vulnerabilities are reported privately
- Assessment: We assess and develop fixes privately
- Coordination: We coordinate with reporters on disclosure timing
- Public Disclosure: We disclose publicly after fixes are available
After a fix is available:
- Security Advisory: We publish a GitHub Security Advisory
- Release Notes: Security fixes are noted in release notes
- CVE Assignment: We request CVE assignment for significant vulnerabilities
- Credit: We credit reporters (unless they prefer anonymity)
Stay informed about security updates:
- GitHub Security Advisories: Watch this repository for security advisories
- Release Notes: Check release notes for security fixes
When security updates are released:
- Immediate: Critical vulnerabilities require immediate updates
- Scheduled: Lower severity issues may be bundled with regular releases
- Backports: A fix ships in the next patch release of the current major. There is no scheduled backport program; issuing a fix on a superseded major line is at the maintainer's discretion, decided per report.
Currently, we do not have a formal bug bounty program. However, we greatly appreciate security researchers who help improve our security posture.
We recognize security contributors through:
- Public acknowledgment in security advisories
- Credit in release notes
- Hall of fame in documentation (if desired)
- Primary channel: GitHub Private Vulnerability Reporting
- Response time: 24 hours for initial acknowledgment
For non-sensitive security questions or discussions:
- GitHub Issues — for non-exploitable hardening suggestions and general security questions
We support security research conducted in good faith. We will not pursue legal action against researchers who:
- Report vulnerabilities responsibly through proper channels
- Do not access or modify data beyond what is necessary to demonstrate the vulnerability
- Do not perform testing on production systems without permission
- Respect user privacy and data protection laws
Please ensure your security research:
- Complies with applicable laws and regulations
- Respects user privacy and data protection
- Does not cause harm to our systems or users
- Follows coordinated disclosure practices
Thank you for helping to keep OpenZIM MCP secure!