NanoClaw's key database had the password 'onecli'. The update won't change it for you.
· Zero Agency
You self-host your AI agents so the keys stay on your machine. You put each agent in its own container. You add a credential gateway so no agent ever sees a raw API key.
Then it turns out any of those agents could walk up to the gateway's database and log in as superuser. The username was onecli. So was the password.
That is the short version of a critical advisory in NanoClaw, the self-hosted, MIT-licensed agent assistant with over 31,000 stars on GitHub. The fix shipped in the stable release on November 20. The catch: the normal update command does not apply it for you.
TL;DR
- NanoClaw's setup installed OneCLI, its credential gateway, without setting a database password, so Postgres ran with the public default login
onecli/onecli, according to advisory GHSA-j39m-796j-gjm3 (critical, CVSS 9.0, published November 17). - Code in any agent container could reach that database. That includes an agent steered by prompt injection from an email or a web page.
- The login was a Postgres superuser that could read every agent's gateway token and the admin API keys in plain text, and re-point stored secrets to another host.
- Affected: NanoClaw up to 2026.11.0-beta.4 with a local OneCLI set up by NanoClaw. Fixed in 2026.11.0-rc.1 and the 2026.11.0 stable release.
- On an existing install,
/update-nanoclawdoes not change the password. You run one extra command.
What actually went wrong in NanoClaw?
Nothing exotic. A default.
OneCLI ships a Docker Compose file. Its database line is POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-onecli}. In plain words: if you don't set a password, the password is onecli.
NanoClaw's setup never set one. The advisory says setup also published that database on the Docker bridge address, which is exactly the network agent containers sit on. From inside a container, host.docker.internal:5432 answered.
The researchers also found a second path. The gateway's proxy on port 10255 accepted a request to connect to postgres:5432 with no agent token. So, per the advisory, binding ports to loopback or turning on egress lockdown did not close the hole.
Why is a default password worse when the user is an AI agent?
Because in an agent setup, the "attacker on your network" is not a stranger. It is your own agent, after it reads the wrong thing.
The advisory says it plainly: the risk includes "an agent steered by prompt injection from an email or web page." Your agent reads your inbox. Somebody sends an email with instructions hidden in it. The agent runs a command. The command logs in to the database that holds the keys for all your other agents.
This is the part I think teams keep missing. We spent years learning that a database should never face the internet. With agents, the internet is already inside the container, one fetched web page away. Anything an agent container can reach, assume an attacker can reach.
What could someone do with that login?
More than read. The advisory lists what the testers confirmed on test data:
- The login was a superuser, and
COPY ... FROM PROGRAMran commands inside the Postgres container. - Every agent's gateway token sat in plain text, so any agent could take another agent's identity and its secret grants.
- Admin API keys and dashboard session tokens were stored in plain text too. Inserting a row gave a working admin key on OneCLI 2.20.
- Changing a secret's
host_patternsucceeded, which means the gateway could be told to send a stored credential to a host the attacker picks.
One piece of good news. The vault values themselves are encrypted and the key is not in the database, so the raw secrets were not readable directly. They would leave through the gateway after a re-point. That is cold comfort, but it is a real limit, and it is worth being precise about.
How do I check if my NanoClaw install is affected?
The release notes give a one-line check. Run it on the machine where OneCLI runs:
[ -f ~/.onecli/docker-compose.yml ] && { ! grep -q '^POSTGRES_PASSWORD=.' ~/.onecli/.env 2>/dev/null || grep -Eqx "POSTGRES_PASSWORD=[\"']?(onecli)?[\"']?[[:space:]]*" ~/.onecli/.env; } && echo affected
If it prints affected, your database still accepts the default. Per the release notes, remote gateways and Iron Proxy installs are not affected.
How do I fix it?
From the NanoClaw folder, after updating:
pnpm exec tsx .claude/skills/add-onecli/scripts/postgres-password.ts
The release notes say it saves a random password in ~/.onecli/.env, sets it on the database and restarts OneCLI once, and your data stays. Run it a second time. It should print "OneCLI's database already has its own password." If it prints "Not changed", fix what it names and run it again.
The fix in pull request #4439 also makes new installs get a random password from the start, and the release says ~/.onecli can no longer be mounted into an agent container.
If you can't update yet, the advisory has a manual workaround: generate a random value, set it with \password onecli inside the Postgres container, write it to ~/.onecli/.env with mode 600, and restart with docker compose up -d.
Should I rotate my keys too?
The advisory does not tell you to. I would anyway, if your agents read untrusted content (email, web pages, chat from outside your team) while the default was live.
Here is the reasoning. The tokens and admin keys were readable, and a secret could be re-pointed to leak through the gateway. You can't easily prove nobody did that. So:
- Fix the password first, so a stolen login stops working.
- Look at each stored secret's host pattern and confirm it still points where it should.
- Rotate the provider keys your agents use, starting with the ones that can spend money or touch production.
- Re-issue agent and admin tokens if your OneCLI version lets you.
We wrote about why speed matters here in what to do when an agent can find your leaked secret in minutes.
Is self-hosting open source agents still a good idea?
Yes. And this advisory is a decent argument for it.
The bug was found, written up in detail with a proof of concept, fixed, and shipped as a stable release within days, all in public. The release notes even include the exact shell check and a rollback note. Closed tools can ship defaults like this too. You just never get to read the compose file.
But "open source" is not a security property. It is a permission to look. The release lists eight changes that need action from some installs, and the password is one a routine update skips. If you run open source agents, someone on your team has to read the release notes. Not skim. Read.
My rule after this one: treat every agent container as a hostile tenant. If an agent can reach a port, check what answers on it and what password it takes. That goes for the open source projects we publish too: it is the first question to ask of any agent tool, ours included.
FAQ
What is OneCLI? An Apache-2.0 open source agent harness that NanoClaw can use as a gateway, so agents use credentials without holding the raw keys.
Which NanoClaw versions are vulnerable? Versions up to 2026.11.0-beta.4 with a local OneCLI set up by NanoClaw. Patched in 2026.11.0-rc.1 and the stable 2026.11.0 release from November 20.
Does /update-nanoclaw fix it?
Not on an existing install. The release notes say you must run the postgres-password.ts script yourself.
Does egress lockdown protect me? No. The advisory says the issue works with egress lockdown on or off, because the gateway's own proxy offered a path to the database.
Was the vulnerability exploited in the wild? The advisory does not report any exploitation. It describes tests on test data.