@ai-sdk/provider-utils is vulnerable to Prototype Pollution
72
High Risk
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.
You are affected if you use a version of @ai-sdk/provider-utils prior to 4.0.18.
@ai-sdk/provider-utils is vulnerable to Prototype Pollution in versions 0.0.1 - 4.0.17.
Update the package to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant