GitHub Advisoryadvisory · npm
GHSA-4564-pvr2-qq4h OpenClaw: Prevent shell injection in macOS keychain credential write
HIGH
Official page ↗
- Aliases
- CVE-2026-27487
- Ecosystem
- npm
- Packages
- openclaw
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
- Weaknesses
- CWE-78
- Reviewed
- 2026-02-18
Affected packages
• npm openclaw: < 2026.2.14 → fixed in 2026.2.14
Description
Summary
On macOS, the Claude CLI keychain credential refresh path constructed a shell command to write the updated JSON blob into Keychain via `security add-generic-password -w ...`. Because OAuth tokens are user-controlled data, this created an OS command injection risk.
The fix avoids invoking a shell by using `execFileSync("security", argv)` and passing the updated keychain payload as a literal argument.
Affected Packages / Versions
• Package: `openclaw` (npm)
• Platform: macOS only
• Affected versions: `= 2026.2.14` (next release)
• Fix PR: #15924
• Fix commits (merged to `main`):
• `9dce3d8bf83f13c067bc3c32291643d2f1f10a06`
• `66d7178f2d6f9d60abad35797f97f3e61389b70c`
• `b908388245764fb3586859f44d1dff5372b19caf`
Thanks @aether-ai-agent for reporting.
Related
Alias · CVE (1)
- CVE-2026-27487 OpenClaw is a personal AI assistant. vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
References
- https://github.com/openclaw/openclaw/security/advisories/GHSA-4564-pvr2-qq4h web
- https://nvd.nist.gov/vuln/detail/CVE-2026-27487 advisory
- https://github.com/openclaw/openclaw/pull/15924 web
- https://github.com/openclaw/openclaw/commit/66d7178f2d6f9d60abad35797f97f3e61389b70c web
- https://github.com/openclaw/openclaw/commit/9dce3d8bf83f13c067bc3c32291643d2f1f10a06 web
- https://github.com/openclaw/openclaw/commit/b908388245764fb3586859f44d1dff5372b19caf web
- https://github.com/openclaw/openclaw package
- https://github.com/openclaw/openclaw/releases/tag/v2026.2.14 web