Security
How AnyPreview opens untrusted files safely, with no macros, sandboxed HTML and email, sanitised Markdown, blocked remote images and bounded decompression.
Viewers open files from strangers, so the defaults assume the file is hostile.
- Nothing runs. Macros in
.docm,.xlsmand.pptmare never executed, notebook code is never run, and SVG is shown as an image, so its scripts cannot run. - HTML is sandboxed. HTML files and email bodies show in a sandboxed frame with an opaque origin and a policy that blocks network requests. Scripts and external resources are opt-in.
- Markdown and notebook HTML are sanitised with DOMPurify, and raw HTML in Markdown is off.
- Emails don't phone home. Remote images are blocked until the reader asks for them.
- Archives are bounded. ZIP entries are decompressed only on demand and never past their declared size.
- No uploads. Files are read in the browser. Nothing is sent anywhere unless you load it from a URL yourself.
- Passwords stay local. Office decryption uses Web Crypto in the browser.
Found a vulnerability? Please report it privately through GitHub security advisories rather than a public issue.