Security
- Documents preview: hardened the new
GET /api/v1/documents/:id/previewendpoint with defense-in-depth against stored XSS. It now enforces its own server-side allowlist of previewable MIME types (PDF, PNG, JPEG, WebP, plain text, CSV) and returns415for anything else, instead of serving any storedmime_typeinline. Responses additionally carryX-Content-Type-Options: nosniffand a restrictiveContent-Security-Policy(default-src 'none') so no inline content can execute scripts even if a file were ever misclassified. (Not exploitable in 0.68.0 — uploads already reject HTML/SVG — but this removes the implicit dependency on the upload allowlist.)