AI SDK v5: request security maintenance guidance for legacy Undici 5 / Busboy 2 dependencies
Summary
A downstream test-only integration of AI SDK v5 currently inherits @ai-sdk/[email protected] -> [email protected] -> @fastify/[email protected]. The legacy Undici/Busboy chain has multiple publicly documented security advisories, including Busboy GHSA-x8mw-p69m-v3mx (DoS) and GHSA-gxm5-99cw-xjw9 (CRLF injection).
This is a dependency-maintenance request about already-public vulnerabilities, not a new vulnerability disclosure and not a proof of reachability in every AI SDK v5 application.
Repro and affected dependency path
Our isolated dependency fixture tests the actual v5 generateText/streamText instrumentation without requiring any live credentials:
ai5: npm:[email protected]in a private compatibility fixture- Its audit resolves a legacy Undici 5 / Busboy 2 tree.
- The fixture's three real integration smoke tests passed across Node 18, 20, and 22.
- The isolated
npm auditreported five affected dependency packages, including two high-severity entries. We intentionally moved this old test-only tree out of the modern AI SDK 6/7 workspace without claiming that AI SDK v5 consumers are safe.
See Agentegrity PR #98, PR #99, and tracked dependency evidence. The modern workspace audit does not represent the legacy v5 consumer graph.
Request
Could the maintainers clarify:
- Whether the supported v5 maintenance line can take a compatible
@ai-sdk/provider-utils@3dependency update to a patched Undici release (for example the patched 6.x line) after appropriate regression testing on supported Node versions; not an untested forced override of@fastify/busboy2.x to 3.x. - If v5 no longer accepts dependency security backports, whether there is a security-support/EOL statement and recommended minimum migration target.
We can share the noncredentialed downstream compatibility tests if useful. No exploit was run and no production systems were probed.
Identify issue type
Identified as Bug
Confidence: Medium
Rationale
This is a concrete dependency-security maintenance report against an existing AI SDK v5 dependency graph. Although it also asks for support/EOL guidance, the primary request is to remediate publicly known vulnerable dependencies.
Evidence
- AI SDK v5.0.272 reportedly resolves through @ai-sdk/[email protected] to [email protected] and @fastify/[email protected].
- The dependency chain is associated with public DoS and CRLF-injection advisories, and the isolated audit reported five affected packages, including two high-severity findings.
- The reporter requests a compatible dependency security backport for the v5 maintenance line, while acknowledging that exploit reachability was not demonstrated.
Identify bug discovery
Discovery source: discovery:audit (high confidence).
The report originated from an automated dependency-security audit of an isolated AI SDK v5 compatibility fixture, not from production use.
- The author states that an isolated
npm auditreported five affected dependency packages, including two high-severity entries. - They traced the dependency path from
[email protected]through@ai-sdk/[email protected]to Undici 5 and Busboy 2. - The integration is explicitly described as test-only and isolated from the modern workspace.
- The author states that no production systems were probed and makes no claim of production reachability.
Follow-up: we completed a controlled, nonpublishing baseline-versus-patched experiment in Cogensec/Agentegrity: 6-job GitHub Actions matrix, research PR #102.
Across Node 18.20.8 / 20.20.2 / 22.23.3:
- Published AI SDK v5 fixture: resolves
[email protected]and@fastify/[email protected]. 3/3 actual v5 telemetry tests passed per Node version.npm audit: 5 affected packages (2 high, 3 moderate). - Temporary private test-only
overrides.undici=^6.29.1: resolves[email protected], no Busboy 2 entry innpm ls. The same 3/3 telemetry tests passed per Node version.npm audit: 0 entries in the isolated installed graph at scan time.
This is a useful candidate for a vendor-maintained v5 dependency backport, not a tested production workaround: the tests use mock language models and do not cover provider-utils' real network/fetch/stream/multipart behavior, Node 18 HTTP edge cases, or other v5 integrations. We have not changed our published dependency graph and continue blocking registry publication while supported optional frameworks retain known advisories.
Could maintainers advise whether a v5 provider-utils security backport with comprehensive Undici 6 compatibility tests is feasible, or whether v5's security-support policy calls for migration? We can share exact audit reports and dependency trees from the linked workflow artifacts.