Security
Manulyx holds work that has not been published: drafts, reviewer correspondence and the record of what was submitted where. This page describes the specific controls that protect it — how accounts are secured, who can reach a manuscript, how LaTeX is compiled, how the service is hosted and backed up, and what institutions can manage for themselves. It is reviewed whenever any of these change.
Your account
- Your address is confirmed before your account works. An account created with a password cannot be signed into until the link sent to that address has been followed. One-time links — address confirmation, password reset, address change — are stored only as SHA-256 hashes, can be used once, and expire: a password reset link after one hour.
- Passwords are hashed with scrypt and a per-account salt, using a memory-hard setting of about 64 MB per hash. They are never stored or logged in a readable form. A failed sign-in takes the same time whether or not the account exists, so the form does not reveal who has an account.
- Sign-in attempts are rate limited — ten in five minutes, counted per address and per source, so one machine cannot work through a list of addresses and one address cannot be attacked from many. The limit is applied before any password is checked. Account creation and password-reset requests are limited in the same way.
- Session cookies are HTTP-only, Secure and SameSite=Lax. Scripts in the page cannot read them, they are sent only over HTTPS, and they are not sent with cross-site form submissions. Each session identifier is 256 bits of random data and expires after 30 days.
- Changing your password signs you out everywhere else. Your account page lists every signed-in session and lets you revoke any of them. Changing your address, changing your password and deleting your account each require your current password.
- You can sign in with Google or ORCID instead of a password. Each sign-in is bound to the browser that started it by a single-use state value, and a Google account is accepted only when Google reports its address as verified.
Your manuscripts
- A project is private to its members. Only people added to it can open it, and each is given one of five roles: owner, co-owner, co-author, commenter or viewer. Every request is checked against the permissions of that role on the server. Only the owner can delete a project.
- Read-only access is enforced by the collaboration server. The live editor connects with a single-use ticket that records whether the person may write, and an edit from someone who may not is refused before it is applied.
- A submitted stage cannot be edited. Once a stage is submitted its files are read-only through every route that writes — the editor, the file dialog and upload alike — because the check is made where files are written, not in the interface. Submission and decision records are append-only, enforced by the database itself.
- Your work is exportable, always. Anyone who can read a project can download all of it: the complete file tree, every checkpoint and submission, every reviewer comment and response, with a documented manifest. No plan, dispute or lapse removes that.
- Deleting your account is previewed before it happens. You are shown which projects will be deleted, which will pass to a collaborator, and which submission records must be kept. A project with other members is handed to one of them, so leaving never deletes a colleague’s work.
Compiling
LaTeX is a programming language, so compiling a document means running code supplied by its author. Every compile is constrained as follows.
- Shell escape is disabled. The engine is started with shell escape off, and documents that use
\write18,\ShellEscapeor theshellescpackage are refused before the engine starts. A document cannot run other programs. - File access is restricted. TeX’s file access runs in its paranoid mode for both reading and writing, so a document cannot open hidden files, reach files through parent directories or by absolute path, or write outside its own compile directory. LuaLaTeX alone reads in the restricted mode, which still refuses hidden files, because it loads TeX’s own font data by absolute path.
- Compiling happens apart from the site. TeX runs in a separate service that holds none of the site’s data or secrets, and each compile there runs as an operating-system user of its own that owns only its own directory. A document cannot read another compile’s files or the service’s credentials, and every process it started is stopped when the compile ends.
- Each compile starts in a fresh directory holding only that project’s files, which is deleted when the compile finishes.
- The compiler receives no server credentials. Its environment is built from an allowlist holding only what TeX needs to run, so database, payment and mail secrets are never present in it.
- Each compile has a wall-clock limit set by your plan — thirty seconds on the free plan, up to five minutes on a paid one. When it is reached the engine and every process it started are terminated. Compile requests are also rate limited per account.
- The engines offered are pdfLaTeX, XeLaTeX and LuaLaTeX. LuaLaTeX embeds a general-purpose scripting language, which is why it was held back until compiles ran as above: its commands for starting programs are switched off with shell escape, and what it can read or write is limited to what its own compile user may.
Infrastructure
- Encrypted in transit. The site is served only over HTTPS, and Strict Transport Security (two years, subdomains included, preload-ready) tells browsers never to connect over plain HTTP.
- A Content Security Policy on every page. It is built around a fresh nonce for each request: an inline script runs only if it carries that nonce, apart from one fixed script that applies your colour theme, which is allowed by its exact hash. Scripts load only from Manulyx itself, the two CDNs that serve the PDF viewer, and Google’s tag server for analytics on public pages when you have accepted it. Two allowances are deliberate: the PDF viewer needs JavaScript evaluation, and the editor writes inline styles. Pages cannot be framed by other sites, plugins and objects are blocked, and forms may submit only to Manulyx. Responses also set
X-Content-Type-Options: nosniff, a strict referrer policy, and a permissions policy denying camera, microphone and location access. - Hosting and storage. The application and its PostgreSQL database run on Railway in the United States, and the database is reached over the host’s private network. Project files are stored in Cloudflare R2, each addressed by the SHA-256 hash of its contents; the application server keeps a working copy of projects in use.
- Nightly backups. Every night the database and every referenced file are copied to Cloudflare R2; thirty nightly database snapshots are kept. If a backup does not complete, an alert is raised automatically. Restores are tested monthly, and an encrypted second copy is kept with a separate provider.
- Payments are handled by Stripe. Card details are entered on Stripe’s hosted checkout and never reach Manulyx’s servers.
Institutions
- SAML 2.0 single sign-on. An institution can connect its own identity provider. The assertion must be signed (a signed response is checked as well), it must be addressed to Manulyx and answer a request Manulyx made from the same browser, a response cannot be replayed, and an identity provider may sign in only addresses at the domains on its own licence.
- SCIM provisioning. The institution’s directory can add and remove people automatically, so a deactivated account loses its seat without manual steps. SCIM tokens are shown once and stored only as SHA-256 hashes; issuing a new token revokes the old one.
- Domain verification by DNS. An institution proves it controls a domain by publishing a TXT record, and a domain can be verified by only one licence.
- An audit log. Every administrative change to a licence — members, seats, invitations, single sign-on, provisioning, domains — is recorded in a log the database keeps append-only, and the institution’s coordinator can review it. The log records actions, never manuscript content.
Reporting a vulnerability
If you believe you have found a security problem, please report it through our contact form with enough detail to reproduce it, and do not test against other people’s data. Every report is answered, and we will tell you what we found. If an issue affects your work we will tell you, whether or not you are the one who reported it. The same address is in our security.txt.
- In scope: manulyx.com and its sign-in, the editor and compiling, file uploads and conversions, the connection for AI assistants (/api/mcp and its sign-in), and the API the site uses.
- Please do not: read, change or delete data that is not yours (use your own test accounts and projects), degrade the service for others (no denial-of-service or load testing), use social engineering or phishing against us or our users, or test our providers’ systems.
- What we do: acknowledge your report within two working days, keep you informed while we fix it, and tell you when it is fixed. We ask you to give us reasonable time to fix a problem before you disclose it publicly.
- Safe harbour: if you act in good faith and within these rules, we will not take legal action against you for your research, and we will treat it as authorised.
Thanks. With your permission, we name the people who reported a problem we fixed here. None so far.