Intel

AIKIDO-2026-10990

@ai-sdk/provider-utils is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

72

High Risk

This Affects:

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

TL;DR

secureJsonParse could be bypassed for prototype-pollution keys by using unicode-escaped __proto__ / constructor in JSON input. The filter didn't recognize escaped variants and skipped safety checks which JSON.parse then normalized those variants into dangerous property names. The fix updates the detection regexes to recognize unicode-escaped forms and hardens the filter to only operate on non-null object-valued constructor properties.

Who does this affect?

You are affected if you use a version of @ai-sdk/provider-utils prior to 4.0.18.

Background info

@ai-sdk/provider-utils is vulnerable to Prototype Pollution in versions 0.0.1 - 4.0.17.

How to fix this

Update the package to the patch version.