Description
A vulnerability was determined in vercel ai up to 3.0.97. The impacted element is the function createJsonResponseHandler/createJsonErrorResponseHandler of the file packages/provider-utils/src/response-handler.ts of the component provider-utils. This manipulation causes resource consumption. The attack may be initiated remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vercel | ai | 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 3.0.19, 3.0.20, 3.0.21, 3.0.22, 3.0.23, 3.0.24, 3.0.25, 3.0.26, 3.0.27, 3.0.28, 3.0.29, 3.0.30, 3.0.31, 3.0.32, 3.0.33, 3.0.34, 3.0.35, 3.0.36, 3.0.37, 3.0.3… | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | langfuse-3-worker | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @ai-sdk/provider-utils | < 3.0.28 | 3.0.28 | GHSA-866g-f22w-33x8 |
| npm | @ai-sdk/provider-utils | >= 4.0.0-beta.10, < 4.0.33 | 4.0.33 | GHSA-866g-f22w-33x8 |
| npm | @ai-sdk/provider-utils | >= 5.0.0-beta.0, < 5.0.1 | 5.0.1 | GHSA-866g-f22w-33x8 |
References
- VDB-364394 | vercel ai provider-utils response-handler.ts createJsonErrorResponseHandler resource consumption vdb-entry technical-description
- VDB-364394 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- Submit #811406 | vercel ai @ai-sdk/amazon-bedrock@3.0.97 Uncontrolled Resource Consumption (CWE-400) third-party-advisory
- https://gist.github.com/YLChen-007/fb1096bc8428bed9a428f764d9d103bb exploit