CVE-2026-8769: @ai sdk/provider utils Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-866g-f22w-33x8
CVSS 4.3
CWE-400
Published
Advisory Summary

CVE-2026-8769 is a LOW (CVSS 4.3) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting @ai sdk/provider utils libraries in the npm ecosystem. The issue involves @ai-sdk/provider-utils has an uncontrolled resource consumption issue. Remediation is available by upgrading affected packages to version 3.0.28, 4.0.33, 5.0.1.

CVE-2026-8769 at a Glance

CVE Identifier CVE-2026-8769
GHSA Identifier GHSA-866g-f22w-33x8
Severity LOW
CVSS v3.1 Base Score 4.3
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product @ai sdk/provider utils
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-8769

To remediate this vulnerability, upgrade all affected @ai sdk/provider utils dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@ai-sdk/provider-utils fixed: 3.0.28
npm install @ai-sdk/provider-utils@3.0.28
@ai-sdk/provider-utils fixed: 4.0.33
npm install @ai-sdk/provider-utils@4.0.33
@ai-sdk/provider-utils fixed: 5.0.1
npm install @ai-sdk/provider-utils@5.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @ai-sdk/provider-utils

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-8769, inspect your project dependencies using npm:

npm ls @ai-sdk/provider-utils

Analyze the terminal output to locate any version of @ai sdk/provider utils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.28), your application is affected.

Note: The npm ls @ai-sdk/provider-utils command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In @ai sdk/provider utils, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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. The exploit has been publicly disclosed and may be utilized.

CVE-2026-8769 Affected @ai sdk/provider utils Versions

3 component(s)
Fixed Versions:
3.0.284.0.335.0.1
Product / Package Ecosystem Affected Versions Fixed Version
@ai-sdk/provider-utils
npm
< 3.0.28
3.0.28
@ai-sdk/provider-utils
npm
≥ 4.0.0-beta.10
< 4.0.33
4.0.33
@ai-sdk/provider-utils
npm
≥ 5.0.0-beta.0
< 5.0.1
5.0.1

References

Frequently Asked Questions

What is CVE-2026-8769?
CVE-2026-8769 is a security vulnerability in @ai sdk/provider utils involving @ai-sdk/provider-utils has an Uncontrolled Resource Consumption issue under CWE-400: Uncontrolled Resource Consumption.
Which @ai sdk/provider utils versions are affected?
Affected versions include releases prior to 3.0.28, 4.0.33, 5.0.1 across affected packages: @ai-sdk/provider-utils.
What version fixes CVE-2026-8769?
Upgrading to 3.0.28, 4.0.33, 5.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @ai-sdk/provider-utils affected?
Yes, @ai-sdk/provider-utils is affected in releases prior to 3.0.28, 4.0.33, 5.0.1. Upgrade your dependency to 3.0.28, 4.0.33, 5.0.1 or later.
What is the CVSS score of CVE-2026-8769?
CVE-2026-8769 has a CVSS v3.1 base score of 4.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-8769?
CVE-2026-8769 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2026-8769?
Run the dependency tree command: 'npm ls @ai-sdk/provider-utils'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-866g-f22w-33x8",
  "modified" : "2026-09-08T16:16:50Z",
  "published" : "2026-05-18T00:31:37Z",
  "aliases" : [ "CVE-2026-8769" ],
  "summary" : "@ai-sdk/provider-utils has an Uncontrolled Resource Consumption issue",
  "details" : "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. The exploit has been publicly disclosed and may be utilized.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@ai-sdk/provider-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.28"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@ai-sdk/provider-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-beta.10"
      }, {
        "fixed" : "4.0.33"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@ai-sdk/provider-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0-beta.0"
      }, {
        "fixed" : "5.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8769"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/pull/16374"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/commit/6a436e31d247d678ddaedfc6f61e73ac0595e4b4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/commit/b30e43ac3fae2432a40b4f4f27f844f3d78b119e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/commit/b85c4fbc603b8173cf50a9790823397aada908a9"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/YLChen-007/fb1096bc8428bed9a428f764d9d103bb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/ai"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/blob/main/packages/provider-utils/CHANGELOG.md#501"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/releases/tag/@ai-sdk/provider-utils@3.0.28"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/releases/tag/@ai-sdk/provider-utils@4.0.33"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/ai/releases/tag/@ai-sdk/provider-utils@5.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/811406"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/364394"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/364394/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-29T16:18:57Z",
    "nvd_published_at" : "2026-05-17T23:17:03Z"
  }
}