Vulnerability library
Security checkDecember 02, 2025

Vercel’s AI SDK's filetype whitelists can be bypassed when uploading files

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmai

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A vulnerability in Vercel’s AI SDK has been fixed in versions 5.0.52, 5.1.0-beta.9, and 6.0.0-beta. This issue may have allowed users to bypass filetype whitelists when uploading files. All users are encouraged to upgrade.

Recommendation

Update the ai package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 5.1.0-beta.0, < 5.1.0-beta.9 < 5.0.52**
  • Patched version(s): **5.1.0-beta.9 5.0.52**

References

Could your website be exposed too?

SmartScanner can check your website for Vercel’s AI SDK's filetype whitelists can be bypassed when uploading files and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated December 02, 2025