Repository navigation
·
2 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
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_documentsandextract_document_pagestake 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; useupload_from_urlin HTTP mode. upload_from_urlno 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
nodeuser. It starts as root only to take ownership of/data, so existing volumes keep working. - The server warns at startup when
MCP_ALLOWED_HOSTSis empty.
Changes
- New
EMBEDDING_TIMEOUT_MS(default60000,0disables) 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