Files
openclaw/src/agents/utils
sheyanmin e57acb1d94 fix(tools-manager): bound GitHub releases response body to prevent unbounded read (#98480)
* fix(tools-manager): bound GitHub releases response body to prevent unbounded read

The agent helper-tool fallback for fd and ripgrep read GitHub's
latest-release response with Response.json(). That consumes the
complete remote body before parsing it, so a faulty or compromised
response could grow agent memory without a bound.

This change makes the release-metadata fetch use the shared
readResponseWithLimit helper with a 1 MiB cap.

Ref. https://github.com/openclaw/openclaw/pull/98480

* fix(tools-manager): use bounded release reader

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-18 02:22:49 +01:00
..