Vulnerability library
Security checkSeptember 08, 2026

@ai-sdk/provider-utils has an Uncontrolled Resource Consumption issue

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated September 08, 2026