CVE-2026-27001 OpenClaw: Unsanitized CWD path injection into LLM prompts
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
OpenClaw is a personal AI assistant. Prior to version 2026.2.15, OpenClaw embedded the current working directory (workspace path) into the agent system prompt without sanitization. If an attacker can cause OpenClaw to run inside a directory whose name contains control/format characters (for example newlines or Unicode bidi/zero-width markers), those characters could break the prompt structure and inject attacker-controlled instructions. Starting in version 2026.2.15, the workspace path is sanitized before it is embedded into any LLM prompt output, stripping Unicode control/format characters and explicit line/paragraph separators. Workspace path resolution also applies the same sanitization as defense-in-depth.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm openclaw(npm) | < 2026.2.15 | 2026.2.15 | Fixed |
| openclaw | < 2026.2.15; = < 2026.2.15 | 2026.2.15 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openclaw | = < 2026.2.15 | No fix listed |
| npm openclaw(npm) | < 2026.2.15 | 2026.2.15 |
| openclaw | < 2026.2.15 | 2026.2.15 |
References
- https://github.com/openclaw/openclaw/security/advisories/GHSA-2qj5-gwg2-xwc4 patch vendor-advisory
- https://github.com/openclaw/openclaw/commit/6254e96acf16e70ceccc8f9b2abecee44d606f79 patch
- https://github.com/openclaw/openclaw/releases/tag/v2026.2.15 product release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product