Security Policy¶
Reporting Security Vulnerabilities¶
If you discover a security vulnerability in bankstatementparser-lsp, 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-lsp is a Language Server Protocol server. It runs locally over
stdio under the user's editor process, so its security surface is:
- Document contents - MT940 statement files (
.mt940/.sta) an editor sends viatextDocument/didOpenandtextDocument/didChange.
There is no network listener, no caller-supplied filesystem path, and no shell-out. The server's behaviour is bounded by what the editor chooses to send.
Hardening¶
- Pure-
reline scanner - the diagnostic engine (diagnostics_for_mt940) is a pure function of the document text using only the standard-libraryremodule; noeval, nojson/XML parsing, no file or network access. - No code execution from documents - diagnostics are derived solely from matching MT940 tag patterns against the text.
- Errors don't leak tracebacks - the engine returns plain
Diagnosticobjects; the server maps them tolsprotocol.Diagnosticwith no stack frames.
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 weekly.
Cryptography Status¶
bankstatementparser-lsp does not perform cryptographic operations.
Contact¶
- Email: security@bankstatementparser.com
- GitHub Advisories: https://github.com/sebastienrousseau/bankstatementparser-lsp/security/advisories
- GitHub Discussions: https://github.com/sebastienrousseau/bankstatementparser/discussions