GHSA-qhrr-grqp-6x2g: Openclaw OpenClaw's Tools.exec.safeBins Trusted PATH Directories Vulnerability
MODERATEGHSA-qhrr-grqp-6x2g is a MODERATE openclaw's tools.exec.safebins trusted path directories vulnerability (CWE-426: Untrusted Search Path) affecting Openclaw libraries in the npm ecosystem. The issue involves openclaw's tools.exec.safebins trusted path directories allowed binary shadowing in allowlist mode. Remediation is available by upgrading affected packages to version 2026.2.22.
GHSA-qhrr-grqp-6x2g at a Glance
How to Fix GHSA-qhrr-grqp-6x2g
To remediate this vulnerability, upgrade all affected Openclaw dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install openclaw@2026.2.22
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls openclaw
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-qhrr-grqp-6x2g, inspect your project dependencies using npm:
npm ls openclaw
Analyze the terminal output to locate any version of Openclaw in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2026.2.22), your application is affected.
Note: The npm ls openclaw command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. In Openclaw, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-qhrr-grqp-6x2g Affected Openclaw Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openclaw
|
npm |
< 2026.2.22
|
2026.2.22
|
References
Frequently Asked Questions
What is GHSA-qhrr-grqp-6x2g?
Which Openclaw versions are affected?
What version fixes GHSA-qhrr-grqp-6x2g?
Is openclaw affected?
What CWE is associated with GHSA-qhrr-grqp-6x2g?
How can I check npm dependencies for GHSA-qhrr-grqp-6x2g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qhrr-grqp-6x2g",
"modified" : "2026-03-03T19:50:45Z",
"published" : "2026-03-03T19:50:45Z",
"aliases" : [ ],
"summary" : "OpenClaw's tools.exec.safeBins trusted PATH directories allowed binary shadowing in allowlist mode",
"details" : "### Summary\nIn `openclaw` allowlist mode, `tools.exec.safeBins` trusted PATH-derived directories for safe-bin resolution. A same-name binary placed in a trusted PATH directory could satisfy safe-bin checks and execute.\n\n### Impact\nThis is an allowlist bypass in exec policy that can lead to command execution in the OpenClaw runtime context when allowlist mode relies on safe bins and an attacker can influence trusted binary locations.\n\n### Affected Packages / Versions\n- Package: `openclaw` (npm)\n- Vulnerable versions: `<= 2026.2.21-2`\n- Patched versions: `>= 2026.2.22` (planned next release)\n- Latest published npm version at triage time (2026-02-22): `2026.2.21-2`\n\n### Root Cause\n- Safe-bin trust accepted PATH-derived directories instead of explicit trusted directories.\n- Safe-bin execution used shell command tokens that could resolve to shadowed binaries.\n\n### Remediation\n- Stop trusting PATH-derived directories for safe-bin trust.\n- Add explicit `tools.exec.safeBinTrustedDirs` for opt-in extra trusted paths.\n- Pin safe-bin shell execution to resolved absolute executable paths.\n\n### Fix Commit(s)\n- `64b273a71cf0b2f2419c974832cede1fc2158729`\n\n### Release Process Note\n`patched_versions` is pre-set to the planned next release (`2026.2.22`). After npm release, this advisory is ready for publish without additional field edits.\n\nOpenClaw thanks @tdjackey for reporting.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "openclaw"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2026.2.22"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/openclaw/openclaw/security/advisories/GHSA-qhrr-grqp-6x2g"
}, {
"type" : "WEB",
"url" : "https://github.com/openclaw/openclaw/commit/64b273a71cf0b2f2419c974832cede1fc2158729"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openclaw/openclaw"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-426" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-03T19:50:45Z",
"nvd_published_at" : null
}
}