Security
What KomaDocs connects to, what its pages are allowed to do, and where it keeps things — each point something you can check for yourself.
Network connections
Editing, rendering, saving and exporting make no network requests. Documents are read and written on your own device, and PDF, PowerPoint, HTML and PNG files are made there too. KomaDocs reaches another computer only for the reasons below, each started by something you do or turn on.
macOS app
- Update check. At launch and from Check for Updates… in the menu. Until signed releases arrive with 0.1.0, the app runs
git fetchon the Git repository it was built from. Nothing about your documents is sent. - GitHub account. Only when you connect one in Settings:
github.comfor the sign-in code andapi.github.comfor your account name. It asks for access to your repositories (repo) and your profile (read:user). - Push, pull and clone. From the Changes panel, to your document repository’s own remote, through Git on your Mac.
- ChatGPT. Only after you sign in with ChatGPT in the Agent panel or Settings › AI Models:
auth.openai.comto sign in, andapi.openai.comwhen you ask something, with the document you choose to share. Requests are sent with OpenAI’s storage turned off (store: false). - Local model and speech. Servers you run yourself on this Mac (Ollama, LM Studio, or a custom endpoint in Settings › AI Models, and local speech in Settings › Speech). Their address must be
127.0.0.1,[::1]orlocalhost; proxies and redirects are refused. - Links. Pages such as chatgpt.com, GitHub’s sign-in page and komalang.org open in your own browser, not in the app. The built-in terminal runs only what you type.
Web app
- This site. The app and its fonts come from where you opened it. To offer a newer build, it reads this site’s
build-info.jsonwhen the app is shown or comes back online, and about every 45 minutes while it is in view. - GitHub. Only once you sign in and open a document from GitHub:
api.github.com, straight from your browser. Signing in goes through this site’s/github/addresses, which speak to GitHub for you (see Privacy).
Both
- Pictures by web address. If a document names a picture by its
https://address, the picture is fetched from there, as on any web page.
Command line
- The
komacommand. Checks, formats and converts without a network. It draws pages in a browser already on your computer and lets that browser load nothing from elsewhere, not even pictures named by a web address. It never connects to OpenAI or any other service. Signing in to ChatGPT and asking it from the command line belong to thekomadocscommand, which reaches OpenAI as the macOS app does and keeps the key in the Keychain (or the Secret Service on Linux).
Check it yourself: watch the macOS app with Little Snitch, LuLu or Proxyman, or the web app in your browser’s developer tools (the Network tab). If you see a connection that is not listed here, please report it.
What the pages may do
- A strict Content Security Policy. Every page of the app runs under one. Scripts come only from the app itself, plus WebAssembly for reading pictures in PDF files; code built from text (
eval) is never allowed. A page may connect only to its own origin and the app’s native side, and in the web app to the GitHub API. Pictures and fonts may come fromhttps://addresses, so that a picture named by its address still shows. - The native side holds the network. In the macOS app, GitHub, ChatGPT, the local model and speech are reached by the app’s native code, not by the page. Document windows are served by a local session on
127.0.0.1, which sends the same policy. - HTML in documents is cleaned. Before HTML written in a document is drawn, DOMPurify removes scripts, forms, embedded SVG and MathML, style sheets and other active content. This is a second layer beneath the policy.
- The browser’s sandbox. The web app runs inside your browser and reads only files you choose. After one visit it is kept on the device and opens without a network, in airplane mode too.
Where things are kept
- Documents. Files on your disk, where you save them. Nothing is uploaded.
- Sign-in keys. In the macOS app, the GitHub and ChatGPT keys are kept in the macOS Keychain, never in a file, and are never handed to the page. Disconnecting or signing out removes them.
- Local ports and MCP approvals. The document windows’ session and the ChatGPT sign-in listen on
127.0.0.1only; external MCP agents connect through a local Unix socket in a0700folder that only your account can open, authenticated with a fresh per-launch token. Client names you approve with Always Allow persist locally inremembered.json(mode0600, verified against symlinks and foreign ownership) and can be removed at any time in Settings › External AI (MCP). Opening a document’s theme with Edit Theme (desktop_open_theme) only opens atheme.komainside that window’s own document folder. Nothing listens on your network. - Diagnostic log. The macOS app records freezes, errors and crashes in
~/Library/Logs/KomaDocs/: event names, timings and counts, never what you wrote, file names or paths. The folder and files can be opened by your account alone. They are plain text (JSON lines) that you can read in any editor, at most three files of 2 MB. Nothing is sent; to share them, attach them yourself. Help › Open Diagnostic Logs Folder, or the same command in the command palette, shows them. The web app records nothing. - In the browser. Unsaved drafts and settings stay in this browser’s storage, as Privacy describes.
Open formats
- Readable files. A
.komadocument is plain UTF-8 text that any editor opens. A.komadocpackage is a ZIP archive (TextBundle) holding that text, its assets, and an optional bounded first-page cover preview (preview.png, never read as content and checked against archive traversal); any unzip tool opens it. - An open language. The Koma language is documented at komalang.org. Its package,
@komalang/koma— the parser, formatter, checker and converter to HTML, PDF, PowerPoint and PNG — is to be published as open source with the first release. Your documents never depend on KomaDocs to be read or converted.
Reporting a vulnerability
Please report a suspected vulnerability privately rather than in a public issue. A dedicated address for security reports will be published on this page before the 0.1.0 release.
- What helps. The version or build, macOS or browser version, the steps that show the problem, and what someone could do with it.
- What we do. We aim to acknowledge your report promptly, share our assessment and progress until it is fixed, and credit you in the release notes if you wish.
- Disclosure. Please wait until a fix is released, or 90 days, whichever comes first, before publishing details. Research in good faith on your own copy of KomaDocs is welcome; do not access other people’s data or disrupt this site.
The same details, for tools, are in security.txt.
Last changed on 1 December 2026.