Aias00 opened a new issue, #6643:
URL: https://github.com/apache/shenyu/issues/6643

   - severity: High
   - files: 
`shenyu-plugin/shenyu-plugin-mcp-server/src/main/java/org/apache/shenyu/plugin/mcp/server/response/NonCommittingMcpResponseDecorator.java:146-156`
   - description: `aggregateDataBuffers` reads bytes from each `DataBuffer` via 
`buffer.read(bytes)` but never calls `DataBufferUtils.release(buffer)`. The 
`collectList()` collects all buffers; after processing they should be released. 
Since this is a "non-committing" decorator (doesn't write to underlying 
response), the buffers are never consumed by a downstream writer.
   - impact: Pooled direct-memory leak proportional to response size on every 
Streamable HTTP tool call.
   - suggested_fix: Release each buffer after reading in 
`aggregateDataBuffers`, or use `DataBufferUtils.releaseConsumer`.
   - confidence: High
   - related_existing: none
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in 
[`docs/scan2-2026-08-02/00-consolidated-critical-high.md`](docs/scan2-2026-08-02/00-consolidated-critical-high.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to