GitHub Advisoryadvisory · npm
GHSA-xwcj-hwhf-h378 OpenClaw Telegram media fetch errors exposed bot tokens in logged file URLs
MEDIUM
Official page ↗
- Ecosystem
- npm
- Packages
- openclaw
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Weaknesses
- CWE-532
- Reviewed
- 2026-03-16
Affected packages
• npm openclaw: < 2026.3.13 → fixed in 2026.3.13
Description
Summary
`openclaw` versions `/...`, so the resulting error strings could leak bot tokens into logs, console output, or any downstream error surface that rendered the exception text.
This issue is in scope under OpenClaw's trust model because the leaked secret is an OpenClaw-operated integration credential, not a user-supplied third-party secret.
Fix
`[email protected]` redacts sensitive media URLs before constructing fetch error messages. Current code routes the source URL and follow-on error paths through `redactMediaUrl()` / `redactSensitiveText()`, so Telegram bot tokens are no longer emitted in those error strings.
Regression coverage exists in `src/media/fetch.test.ts` (`redacts Telegram bot tokens from fetch failure messages` and `redacts Telegram bot tokens from HTTP error messages`).
Fix Commit(s)
• `7a53eb7ea8295b08be137e231c9a98c1a79b5cd5`
Thanks @space08 for reporting.
Related
Weakness · CWE (1)
- CWE-532 Insertion of Sensitive Information into Log File weakness