Intel

AIKIDO-2025-10541

@voltagent/vercel-ai is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 11, 2025

55

Medium Risk

This Affects:

js@voltagent/vercel-ai
0.0.1 - 0.1.17
Fixed in 0.1.18
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) due to the insecure use of JSON.stringify(). This function can produce output that, when embedded into HTML without proper escaping, enables attackers to inject and execute malicious scripts in a user's browser. The patched version mitigates this risk by adding an additional layer of output sanitization.

Who does this affect?

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

Background info

@voltagent/vercel-ai is vulnerable to Cross-site Scripting (XSS) in versions 0.0.1 - 0.1.17.

How to fix this

Upgrade the @voltagent/vercel-ai library to the patch version.