#11027·marimo

Security risk: startup URL prints the access token even when it is supplied via --token-password / --token-password-file

Author: nkuglandCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbug

Describe the bug

When marimo edit is started with a user-supplied token (--token-password or --token-password-file ), the startup banner still prints the full URL including ?access_token=. Anything that captures stdout (systemd journal, container logs, CI logs, tmux scrollback) then records the secret in clear text, which defeats the purpose of passing it via a file.

Workaround We currently keep marimo's stdout out of the journal, but that also discards useful startup and diagnostic output.

Related: #6833 fixed command-line (ps) exposure by adding file and stdin token options, but the startup URL still prints the token when those options are used, so the secret leaks through a different channel.

Will you submit a PR?

  • Yes

Environment

marimo version: 0.24.0 · OS: Linux (systemd service) · Python: 3.14

Code to reproduce

To reproduce

  1. printf 'secret123' > /tmp/tok && chmod 600 /tmp/tok
  2. marimo edit --headless --token-password-file /tmp/tok notebook.py
  3. Observe the startup output: URL: http://localhost:2718?access_token=secret123

Expected behavior When the token was supplied by the user, omit it from the printed URL (print the bare URL, or mask it as access_token=***). The user already knows the token, so printing it only leaks it. An auto-generated token could keep the current behavior, since the user needs to see it.