Intel

AIKIDO-2026-10981

@ai-sdk/provider-utils is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

74

High Risk

This Affects:

JS@ai-sdk/provider-utils
0.0.1 - 4.0.19
Fixed in 4.0.20
Are you affected? Scan for Free

TL;DR

The downloadBlob helper in @ai-sdk/provider-utils fetches a caller-supplied URL without validating its protocol, hostname, or destination IP. The fix introduces a shared validateDownloadUrl utility that rejects non-HTTP(S) schemes, loopback, link-local, and private IPv4 and IPv6 ranges before any network request is made. The fix also validates the URL after redirects.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@ai-sdk/provider-utils is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 4.0.19.

How to fix this

Upgrade the @ai-sdk/provider-utils library to the patch version.