Skip to content

v1.8.0

Latest

Choose a tag to compare

@OrellBuehler OrellBuehler released this 22 Nov 01:30
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
02a6221

Security

Hardening for the multi-user HTTP transport, where the server's disk and network are shared by every user. (#31)

  • Local file tools are no longer registered over HTTP. upload_document, upload_document_version, bulk_download_documents and extract_document_pages take a path on the server's disk, which let any user with a Paperless token read or overwrite server files. They remain available over stdio; use upload_from_url in HTTP mode.
  • upload_from_url no longer reaches the server's private network in HTTP mode. Private, loopback and link-local addresses are refused, checked at connection time so DNS rebinding cannot bypass it. In both modes the 100 MB cap is now enforced while streaming and a stalled download times out.
  • HTTP sessions are only opened for tokens Paperless accepts. Request bodies are capped at 4 MB, sessions at 1000 (least recently used evicted, 24 h idle expiry), and 500 responses no longer include error details.
  • The Docker image runs as the unprivileged node user. It starts as root only to take ownership of /data, so existing volumes keep working.
  • The server warns at startup when MCP_ALLOWED_HOSTS is empty.

Changes

  • New EMBEDDING_TIMEOUT_MS (default 60000, 0 disables) for requests to the embedding provider.

Upgrade notes

  • HTTP deployments lose the four file-path tools listed above.
  • Each new HTTP session with a raw Paperless token makes one extra request to Paperless (/api/profile/); initialization returns 502 if Paperless is unreachable.

Full Changelog: v1.7.0...v1.8.0