Description
Versions of @ai-sdk/provider-utils before 3.0.28, from 4.0.0 before 4.0.33, and from 5.0.0 before 5.0.1 are vulnerable to uncontrolled resource consumption. The createJsonResponseHandler, createJsonErrorResponseHandler, and createStatusCodeErrorResponseHandler functions in packages/provider-utils/src/response-handler.ts read response bodies without a shared size limit, allowing a remote attacker with low privileges to cause excessive memory consumption.
Recommendation
Update the @ai-sdk/provider-utils package to the latest compatible version. Followings are version details:
Affected version(s): **>= 5.0.0-beta.0, < 5.0.1 >= 4.0.0-beta.10, < 4.0.33 < 3.0.28** Patched version(s): **5.0.1 4.0.33 3.0.28**
References
Could your website be exposed too?
SmartScanner can check your website for @ai-sdk/provider-utils has an Uncontrolled Resource Consumption issue and gives you actionable findings to investigate.
Start a free scanRelated Issues
- @isaacs/brace-expansion has Uncontrolled Resource Consumption - CVE-2026-25547
- DesktopCommanderMCP is vulnerable to Uncontrolled Resource Consumption - CVE-2026-10691
- LiquidJS: Uncontrolled Resource Consumption in `join` filter allows template authors to bypass `memoryLimit` and crash t - CVE-2026-69222
- Open WebUI Uncontrolled Resource Consumption vulnerability - CVE-2024-12534


