Skip to content
HighVulnerabilityLLM-specific

GHSA-2qj5-gwg2-xwc4: OpenClaw: Unsanitized CWD path injection into LLM prompts

Published
Record updated
View JSON
Affected
  • openclaw < 2026.2.15
Fixed in
2026.2.15
  • released February 15, 2026, 2 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

OpenClaw embedded the current working directory path into the agent system prompt without sanitization. A directory name containing control or format characters, such as newlines or Unicode bidi and zero-width markers, could break the prompt structure and inject attacker-controlled instructions, altering agent behavior or enabling unintended tool use or disclosure of sensitive information. Affected versions of the `openclaw` npm package are those below 2026.2.15.

Mitigation

Fixed in 2026.2.15 (patched versions `>= 2026.2.15`). The workspace path is now sanitized before it is embedded into any LLM prompt output, stripping Unicode control/format characters and explicit line/paragraph separators, and workspace path resolution applies the same sanitization as defense-in-depth. Fix commit: `6254e96acf16e70ceccc8f9b2abecee44d606f79`.