tools.exec.safeBins could be bypassed for filesystem access when sort output flags (-o / --output) or recursive grep flags were allowed through safe-bin execution paths.
openclaw (npm)<= 2026.2.17>= 2026.2.192026.2.17In deployments that enabled tools.exec.safeBins, an attacker with access to command execution flows could turn intended stdin-only safe-bin usage into file writes (sort -o) or recursive file reads (grep -R).
2c05cbb43e48ebad03626d3125746fb1b9a8520fFound using MCPwner
Thanks @nedlir for reporting.
| Score | Percentile |
|---|---|
| 0.01% | 2.24% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 3.6 | 3.1 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-4685-c5cp-vp95 ↗ |
| CVE | CVE-2026-31996 ↗ |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| npm | openclaw | <= 2026.2.17 | 2026.2.19 | — |