Skip to content

Security: nodemode-dev/formledger

Security

SECURITY.md

Security policy

Supported versions

Security fixes go into the newest release. Please update before reporting, and check whether the problem is still there.

Version Supported
Latest release Yes
Anything older No

Reporting a vulnerability

Do not open a public issue for a security problem. Use GitHub's private reporting instead: on the repository's Security tab, choose Report a vulnerability. Include what you found, the steps to reproduce it, the version and platform, and what an attacker could do with it.

You can expect an acknowledgement within a week. We will keep you informed while it is fixed and credit you in the release notes, unless you would rather not be named.

What counts

FormLedger runs on your own machine, so the things that matter most are the ways something outside it could get in:

  • The server listens on loopback (127.0.0.1:8340 by default, set with FORMLEDGER_ADDR; the desktop app starts its own copy on a loopback address). Anything that makes it reachable from another machine without the person turning that on, or lets a web page on another origin drive it.
  • Accounts, roles and app tokens: getting past a role, reading or changing the books as another user, an app token doing more than its read or write scope or its owner's role allows, an app token making another one, or any edit or delete of a row in the audit trail. See docs/ROLES.md.
  • The data directory and the key: reading or writing files outside the directory named by FORMLEDGER_DATA. With a key (FORMLEDGER_KEY_FILE, or a systemd credential named formledger.key) the ledger database, its WAL and its journal are encrypted with XTS-AES-256, and without one the server says at start that the ledger is plain. The desktop app makes its own key in its app data folder, never in the data directory. A missing or wrong key stops the server before any database is opened. Reading the encrypted database without the key, or anything that leaves ledger data in the clear inside an encrypted data directory, counts. formledger report snapshot writes a plain copy by design and must be treated as sensitive. See docs/ENCRYPTION.md.
  • The desktop shell: the Tauri shell running the bundled server with more permissions than its capability files grant, or loading content that did not come from the app.
  • The agent dock (from 0.15.0): anything other than FormLedger's own window on this computer reaching a shell or an agent program through it.
  • Files: exporting, printing or taking a snapshot in a way that writes outside where it should.
  • The build: a script, workflow or dependency in this repository that runs something it should not.

Bugs that need someone to already control your machine, or to run a modified build of FormLedger, are ordinary bugs: please open an issue for those.

There aren't any published security advisories