CVE-2026-41385: OpenClaw Nostr privateKey config redaction bypass leaks plaintext signing key via config.get
In OpenClaw up to 2026.3.28, the Nostr channel's `privateKey` setting was treated as a plain string, so config views such as `config.get` and the Control UI showed the signing key in plaintext. Anyone who could read the config through those views could take over the Nostr identity. Fixed in 2026.3.31.
Published Apr 2, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
OpenClaw redacts secrets in config snapshots based on schema hints and path patterns. The Nostr extension declared channels.nostr.privateKey as an ordinary string with no sensitive marker, and the path patterns did not match privateKey, so redaction skipped it. A call to config.get or a view in the Control UI returned the key.
The attacker needs a way to read configuration through those surfaces. The CVSS 3.1 vector (network, low privileges, high confidentiality) points to an authenticated user of the gateway rather than an anonymous one. The CVSS 4.0 vector lists no privileges, so the sources disagree on that point.
A Nostr private key is the account's identity. With it an attacker can sign events as the agent's Nostr account, read direct messages encrypted to its public key, and impersonate it. Nostr keys cannot be rotated in place. The identity is the key, so a leak means a new identity.
The fix changes the key's type to a secret input. It can be a string or an env, file or exec SecretRef object.
Who is affected
openclaw (npm) up to and including 2026.3.28, on installs with the Nostr channel configured with a privateKey. Check the version:
npm ls openclawCheck whether channels.nostr.privateKey, or a per-account privateKey, holds a literal key in your config file.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.3.31 or later:
npm install [email protected]Commit 57700d7 makes privateKey a secret input, marks it sensitive in the UI hints, and adds a /private.?key/i pattern so config snapshots and Control UI views redact it. It also lets you reference the key through an env, file or exec SecretRef instead of a literal. After upgrading, treat any key that appeared in a config view as exposed. The sources do not mention rotation. Because Nostr identity is the key, that means generating a new key and updating the account.
How to tell if you were hit
Review gateway logs for config.get calls and Control UI sessions by users who should not see channel credentials. Check any saved screenshots, support bundles or shared config snapshots from versions up to 2026.3.28 for a Nostr private key (an nsec value or 64-character hex string). On the Nostr side, look for events signed by your public key that you did not send. The sources give no log signatures.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenClaw Nostr privateKey config redaction bypass leaks plaintext signing key via config.get
Current Maintainer Triage
- Status: open
- Normalized severity: medium
- Assessment: v2026.3.28 still models Nostr privateKey as plain string so config views can expose it, and the secret-schema fix is unreleased.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
57700d716f660591fb6e09727f3ca8041fa48b9d— 2026-03-31T19:55:03+09:00
Release Process Note
- The fix is already present in released version
2026.3.31. - This draft looks ready for final maintainer disposition or publication, not additional code-fix work.
Thanks @ccreater222 for reporting.
Credited to ccreater222, KeenSecurityLab, qclawer.
Questions
- Is the Nostr key encrypted in the config file?
The advisory describes it as plaintext. The bug was that config views did not redact it. After the fix you can use an env, file or exec SecretRef instead of a literal value.
- Should I rotate the key?
If it could have been viewed through
config.getor the Control UI by anyone untrusted, yes. A leaked Nostr key lets the holder sign as that identity.- Which version fixes CVE-2026-41385?
openclaw 2026.3.31, the first stable tag with commit 57700d7.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
