Skip to content

Security: AlgorithmicMind/docground

SECURITY.md

Security Policy

Supported Versions

Version Supported
0.2.x Yes
< 0.2.0 No — upgrade to 0.2.x

Reporting a Vulnerability

Please do not open a public GitHub issue for security vulnerabilities.

Instead, report vulnerabilities privately through GitHub Security Advisories ("Report a vulnerability" in the Security tab of https://github.com/AlgorithmicMind/docground) or contact the maintainers privately.

We aim to acknowledge reports within 48 hours and provide a remediation plan or patch timeline within 5 business days.

Deployment Hardening Guidelines

When using docground in multi-tenant servers or pipelines processing untrusted documents:

  1. Disable or sandbox filesystem inputs: Pass allowFilePaths: false (recommended when input comes from external users) or restrict paths with allowedBaseDir and maxInputBytes.
  2. Sanitize ExtractedTable.html: The optional html field on extracted tables is untrusted model output. Sanitize it (e.g., with DOMPurify) before inserting it into any browser DOM.
  3. Restrict baseUrl: OpenAIProvider enforces https:// by default and requires an explicit apiKey for non-default hosts so OPENAI_API_KEY is never leaked implicitly.
  4. Keep debug: false in production: Raw model output previews are omitted from DocGroundError messages by default to prevent PII/PHI leakage into logs.

There aren't any published security advisories