GHSA-f3h5-h452-vp3j: OpenClaw: Nostr profile mutation routes allowed operator.write config persistence
OpenClaw, the open-source AI agent gateway, let callers holding only operator.write scope change Nostr profile settings and save them to config. The Nostr plugin profile routes did not require admin authority. Versions before 2026.4.10 of the openclaw npm package are affected. Upgrade to 2026.4.10 or later.
Published Apr 17, 2026 · Analysis Nov 6, 2026
What an attacker can do
The Nostr plugin exposes HTTP routes that mutate the profile: PUT /profile and POST /profile/import. In affected versions these routes persisted profile config through a path that did not require the operator.admin scope. A caller with operator.write could therefore write configuration that should be admin-only.
The fix adds an enforceGatewayAdminMutationScope() guard in extensions/nostr/src/nostr-profile-http.ts. It reads the caller scopes and denies by default when they are missing. It returns HTTP 403 with missing scope: operator.admin. The guard runs before the existing loopback and CSRF checks.
In practice, the attacker already needs an authenticated, lower-privileged gateway credential (PR:L). They can then persist Nostr profile changes, and the PR shows the routes also call publishNostrProfile and importProfileFromRelays. The CVSS 4.0 vector rates integrity impact low and no confidentiality or availability impact. Teams that hand out operator.write tokens to automation or less-trusted users should treat those tokens as able to alter this config.
Who is affected
The openclaw npm package before 2026.4.10, on gateways where the Nostr plugin is enabled and its HTTP profile routes are reachable. The first stable tag with the fix is v2026.4.10. Check the installed version:
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- < 2026.4.10
- Fixed in
- 2026.4.10
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.10 or newer. The advisory notes the latest npm release at publication, 2026.4.14, includes the fix.
npm install openclaw@latestThe fix is pull request 63553, commit 6517c700de9b. The advisory lists no workaround. Until you upgrade, limit who holds operator.write tokens, or disable the Nostr plugin if you do not use it.
How to tell if you were hit
Review Nostr profile config for changes you did not make, and check the gateway logs for PUT /profile and POST /profile/import requests from credentials that hold operator.write but not operator.admin. After the fix, such requests return 403 with missing scope: operator.admin, so those lines also show attempts. Beam records agent file access and config writes on the host, so a rule on edits to the OpenClaw config file can flag unexpected profile persistence.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Nostr profile mutation routes allowed operator.write config persistence.
Affected Packages / Versions
- Package:
openclaw - Ecosystem: npm
- Affected versions:
< 2026.4.10 - Patched versions:
>= 2026.4.10
Impact
Nostr plugin HTTP profile routes could persist profile config through a path that did not require admin authority.
Technical Details
The fix requires operator.admin scope for Nostr profile mutation routes.
Fix
The issue was fixed in #63553. The first stable tag containing the fix is v2026.4.10, and [email protected] includes the fix.
Fix Commit(s)
6517c700de9bb0ee11b41ab625ef3b63d01b6083- PR: #63553
Release Process Note
Users should upgrade to openclaw 2026.4.10 or newer. The latest npm release, 2026.4.14, already includes the fix.
Credits
Thanks to @zpbrent and @zsxsoft, with sponsorship from @KeenSecurityLab and @qclawer for reporting this issue.
Credited to zpbrent.
Questions
- Does this need admin access?
No. That is the flaw. A caller with only operator.write scope could persist Nostr profile config, which should have required operator.admin.
- Which routes are affected?
The Nostr profile mutation routes PUT /profile and POST /profile/import, per pull request 63553.
- Which version fixes it?
openclaw 2026.4.10 or newer. The first stable tag with the fix is v2026.4.10.
- How severe is it?
Medium, CVSS 4.0 score 5.3. It needs a low-privilege authenticated credential and affects integrity only.
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
