The vulnerability is a classic case of unbounded resource allocation (CWE-770). The readRequestBody function in src/transports/http/server.ts processes incoming HTTP request bodies. The original implementation concatenated incoming data chunks into a string variable (body) without any checks on the total size. This allows a remote, unauthenticated attacker to send a single, large POST request, causing the server to exhaust its memory and crash. The fix, as seen in commit f97d2bb76d6359faf10cd1fc54b4911476b62524, introduces a size check that enforces the maxMessageSize configuration, effectively mitigating the denial-of-service vulnerability. The vulnerable function is clearly HttpStreamTransport.readRequestBody as it is the function that was modified to add the necessary security control.