Security Policy¶
Reporting Security Vulnerabilities¶
If you discover a security vulnerability in bankstatementparser-mcp, please email security@bankstatementparser.com instead of using the issue tracker.
Please include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if available)
We will acknowledge receipt within 48 hours and provide updates on remediation timeline.
Threat Model¶
bankstatementparser-mcp is a Model Context Protocol server that wraps
the bankstatementparser
library and exposes it as agent tools. It speaks stdio by default (the
client spawns it; nothing listens) and opens an HTTP listener only when
asked with --transport streamable-http or --transport sse, so the
security surface is:
- Untrusted arguments - tool calls (
parse_statement,validate_statement,detect_format,summarize_statement) can come from any MCP client an agent has access to. - Inline content - the tools accept the raw statement text as a string argument and write it to a private temporary file for the duration of a single call.
- No caller-supplied paths - the tools do not open arbitrary filesystem paths; only the temporary file the server itself created is read back.
- The HTTP listener -
--transport streamable-httpand--transport ssebind127.0.0.1unless--hostsays otherwise and carry no authentication or TLS of their own. Do not bind a routable address without a gateway in front of it that adds both.
Hardening¶
- Private temp files - each call writes its inline content to a file
created by
tempfile.mkstemp, which the server removes in afinallyblock as soon as the call returns. No persistent artefacts remain. - Validation as data -
validate_statementreturns{"is_valid": false, "error": …}rather than raising; tracebacks and stack frames are not surfaced over the wire. - Loopback by default - stdio needs no socket; the HTTP transports bind loopback unless told otherwise (ADR 0001).
- No secrets - the package does not embed credentials or call out to external services.
Continuous Integration¶
ci.ymlruns the full quality matrix (ruff, mypy, pytest with the 100% coverage gate, interrogate).security.ymlrunsbanditagainst the package on every push and weekly via cron.codeql.ymlruns GitHub's CodeQL Python analysis on every push, pull request and weekly.scorecard.ymlpublishes the OpenSSF Scorecard weekly; every action in every workflow is pinned by commit SHA.dco.ymlrequires aSigned-off-by:trailer on every commit.- Dependabot (
.github/dependabot.yml) proposes pip, GitHub Actions and Docker updates weekly. release.ymlpublishes to PyPI through OIDC trusted publishing with SLSA build provenance, cosign signatures and SBOMs. Every GitHub release carries a keyless cosign.sigand.pemper distribution and, from 0.0.36, a SLSA Build Level 3 provenance file (bankstatementparser-mcp-vX.Y.Z.intoto.jsonl) from slsa-github-generator. Verify a wheel withslsa-verifier verify-artifact --provenance-path bankstatementparser-mcp-vX.Y.Z.intoto.jsonl --source-uri github.com/sebastienrousseau/bankstatementparser-mcp --source-tag vX.Y.Z <wheel>.
Cryptography Status¶
bankstatementparser-mcp does not perform cryptographic operations. It
does not sign, encrypt, verify certificates, or hash passwords. Any
crypto-bearing package in the dependency tree is transitive via
bankstatementparser.
Contact¶
- Email: security@bankstatementparser.com
- GitHub Advisories: https://github.com/sebastienrousseau/bankstatementparser-mcp/security/advisories
- GitHub Discussions: https://github.com/sebastienrousseau/bankstatementparser/discussions