Smart Document Manager (SDM) is self-hosted software. There is no hosted instance run by the project: every deployment belongs to whoever started it. This policy covers the code in this repository.
Fixes land on main and ship in the next release. Only the latest release
receives security fixes.
| Version | Supported |
|---|---|
| 1.0.x | Yes |
| Earlier | No |
Please do not open a public issue, pull request or discussion for a security problem.
Report it privately through GitHub instead: Report a vulnerability (the Security tab, then Report a vulnerability). Only the maintainers can read the report, and the fix can be discussed and prepared in the same private advisory.
A useful report includes:
- the affected service (
ocr-apiand its web console,vllm-paddleocr,ocr-mcp, thestorageprofile, the launchers, the Compose/Docker setup or CI) and the release or commit; - the relevant configuration: GPU and autotune profile, whether the
storageprofile or archive-only mode is active, and which settings in.envdiffer from.env.example. Leave real tokens and S3 keys out; - the steps to reproduce, and what an attacker gains;
- a proof of concept, if you have one.
SDM is maintained by a small team, so these are targets, not guarantees:
- acknowledgement within 7 days;
- a first assessment (confirmed or not, severity, next steps) within 14 days;
- updates at least every two weeks until the report is closed.
For a confirmed issue we prepare the fix in the private advisory, release it, and then publish a GitHub Security Advisory, requesting a CVE when one is warranted. Reporters are credited in the advisory unless they prefer otherwise.
Please keep the details confidential until the advisory is published, or for 90 days after your report if that comes first, unless we agree on another date together.
In scope: anything that breaks a security property the project documents, for example:
- reaching an authenticated route without a valid token: an
ocr-apiroute other than/,/health,/assets/*and the opt-in Swagger pages whileOCR_SERVER_API_TOKENSis set, orocr-mcpover HTTP whileMCP_API_TOKENSis set; - one credential opening a service it does not belong to: an MCP token
accepted by
ocr-api, an API token accepted byocr-mcp, or an S3 call or storage-console login throughstorage-gatewaysucceeding without valid credentials; - an S3 identity acting beyond its least-privilege role: the writer deleting
objects, the reader writing or deleting, or the S3 administrator
credentials reaching
ocr-apiorocr-mcp; - a destructive MCP storage tool acting without its exact
confirmvalue (the archive job ID or the relative file name); - the MCP server reading a
file_pathoutsideMCP_INPUT_ROOTS, for example through a symlink or path traversal; - a published port bound to an address other than loopback, despite
scripts/verify_compose_security.py, or the standalone MCP server binding every interface; - a container escaping its hardening: every service drops all capabilities
and sets
no-new-privileges, and every service exceptvllm-paddleocr(whose upstream image still writes under/root) also runs as a non-root user with a read-only root filesystem; - a token or S3 key appearing in a log, an error message, a response or the launchers' output (logs carry token labels, never token values);
- injection into the GitHub Actions workflows.
Out of scope:
- vulnerabilities in PaddleOCR, PaddlePaddle, vLLM, the model, SeaweedFS,
LibreOffice or other third-party packages themselves: report them upstream.
A report is welcome here when SDM makes such a flaw reachable, or when a
shipped package carries an advisory that is neither fixed nor listed in
requirements/audit-triage.json. That file records each accepted advisory with its rationale and expiry date, and the weekly dependency audit checks the image inventories against OSV; - setups that switch a documented safeguard off, such as running
ocr-apiwith an emptyOCR_SERVER_API_TOKENSorocr-mcpwithMCP_ALLOW_UNAUTHENTICATED_LOCAL=true, reusing one token across services, or a reverse proxy that exposes a service to the internet; - instructions hidden in OCR'd documents that an AI agent chooses to follow: OCR text is returned as data, and what an MCP client does with it is up to that client;
- denial of service through request volume or oversized documents against your own instance.
Test only against a deployment you run yourself, never against systems or data that belong to someone else. Good-faith research that follows this policy is welcome, and we will not take action against it.
ocrserver/README.md: API authentication, rate limiting, admission limits and Office conversion;ocr-mcp-server/README.md: MCP authentication, Host/Origin allowlists,MCP_INPUT_ROOTSand the confirmation gates;storage/README.md: the four S3 identities and the storage gateway;scripts/README.md: the launchers' token, credential and published-port checks;requirements/README.md: dependency pins, image inventories, the OSV audit and the triage file;.github/AGENTS.md: workflow permissions and the release gate.