TECHNOLOGIES: VERCEL AI SDK

Vercel AI SDK Penetration Testing

Last updated:

In an AI SDK app the browser sends the whole conversation to your route, and any tool with an execute function runs automatically. We test both from a real user’s side. EJN Labs is a CREST-accredited UK company providing penetration testing for apps built on the Vercel AI SDK, from £6,090 for a 5-day single-application scope, quoted within 24 hours.

  • Unlimited retesting
  • Unlimited pre-retesting
  • No hidden fees
Accredited & recognised
Cyber Essentials certified Cyber Essentials Plus certified IASME certifying body ISO 27001 certified ISO 9001 certified Crown Commercial Service supplier UK Cyber Security Council member
CREST
Approved Provider
10
Vercel AI SDK Test Areas
FREE
Retest Until Closed
24h
Scope to Active Test
CLIENT REFERENCE
“I would highly recommend EJN Labs to any organisation seeking reliable, detailed, and well-managed penetration testing services, particularly for government or enterprise-level projects.”
SquareOneImran SaghirProject Lead, SquareOneRead the SquareOne case study →
CLIENT REFERENCE
“There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.”
CelloriDan WilcocksonFounder, CelloriRead the Cellori case study →
See all case studies →
WHY IT MATTERS
20

By default a ToolLoopAgent stops after 20 steps, and every tool with an execute function runs without asking. The limits and approvals you add are what protect you.

How the AI SDK decides what a model can run

The AI SDK’s own tool approval documentation starts from a plain default: tools with an execute function run automatically when the model calls them. Approval is opt-in through toolApproval, and it does not apply to provider-executed tools or to tools inside subagents. Meanwhile the typical chat route reads the full messages array from the request body, and the persistence guide says to validate messages that contain tool calls, metadata or data parts with validateUIMessages before they reach the model. We test what happens when that history is forged.

Tools can also live in the browser. In the documented chatbot tool flow, all tool calls are forwarded to the client, and client-side tools are completed there with onToolCall and addToolOutput. So a result the model trusts may have come from the user’s own browser. The MCP client documentation adds that MCP tool annotations are untrusted, server-provided hints, and that a user-supplied server URL needs SSRF protection.

Most AI SDK apps run on Next.js and deploy to Vercel, so the app around the route matters as much as the SDK. We cover the platform side in our Vercel security review and the framework side in our Next.js penetration testing, and the model-specific questions in our AI penetration testing.

SCOPE

What we test in an application built on the Vercel AI SDK

VA-01

Forged Message History

The AI SDK chat pattern sends the full messages array from the browser, and the docs say to validate messages containing tool calls, metadata or data parts with validateUIMessages. We forge assistant turns, tool results and system-like parts in the request, and test whether your route accepts them.

VA-02

Tool Execute Functions and Their Credentials

A tool with an execute function runs automatically when the model calls it, and its inputSchema is what validates the call. We test each tool with hostile arguments and check what its credentials can reach, including another user’s records.

VA-03

Tool Approvals and Their Limits

toolApproval can approve, deny or ask for selected calls, but provider-executed tools and subagent tools are outside it. We map which tools are gated, and test whether a gated action can be reached through an ungated tool or a changed argument.

VA-04

Client-Side Tools and Forged Outputs

Client-side tools are completed in the browser with onToolCall and addToolOutput. We test whether a user can supply a tool output the model then trusts, such as a fabricated confirmation or lookup result.

VA-05

MCP Clients and Server Trust

The AI SDK recommends HTTP transport for production and limits stdio to local use, and it calls MCP tool annotations untrusted hints. We review which MCP servers you connect, which tools you load, and whether a user-supplied URL can reach internal addresses.

VA-06

Step Limits, Rate Limits and Cost Abuse

ToolLoopAgent stops after 20 steps unless you set stopWhen, and the AI SDK documents rate limiting for API routes. We test whether unauthenticated or low-privilege callers can drive long tool loops, large prompts or repeated calls that run up model spend.

VA-07

What the Stream Exposes to the Browser

The UI stream carries tool calls and results, error text, and reasoning when sendReasoning is on. We read the raw stream as a user and check for tool arguments, internal error messages or reasoning that should stay on the server.

VA-08

Telemetry and Logged Prompts

The AI SDK records inputs and outputs in telemetry by default, and recordInputs and recordOutputs can switch that off. We check where telemetry goes, who can read it, and whether prompts and responses holding customer data end up in it.

VA-09

Agent Memory Tools

The AI SDK shows memory built from provider-defined tools, memory providers or a custom tool, where you write the execute function. We test those functions for path handling, cross-user reads and data that persists into later conversations.

VA-10

Chat Persistence and Authorisation

The documented persistence pattern loads a conversation by its ID and can resume streams. We test whether one user can load, resume or overwrite another’s chat by changing the ID, and how stored tool parts are validated when reloaded.

OUR PROCESS

Vercel AI SDK Penetration Testing: From Scope to Attestation

01

Scope and Access

We agree which route, agent and tools are in scope, and get accounts for each user type, plus a staging deployment if you want one.

02

Route and Tool Mapping

We map every chat route, tool, approval rule, MCP connection and persistence call, and what credential sits behind each.

03

Manual Testing

A CREST-certified tester tests forged history, tool abuse, approvals, the stream and chat access by hand, chaining findings where they compound.

04

Attestation and Retest

You get a technical report with CVSS scores and reproduction steps, a walkthrough call, a free retest once fixes are deployed, and an attestation letter for auditors.

CREDENTIALS

Verified Accreditations Auditors Accept

Every credential below is independently verifiable. UK procurement teams, FCA supervisors, ISO 27001 / SOC 2 auditors, and cyber insurance underwriters all recognise these standards.

GET YOUR QUOTE

Get a CREST Vercel AI SDK pen test quote in 24 hours

A fixed-price quote back in one business day, from a named CREST assessor. No sales pipeline, no chasing.

  • CREST and IASME accredited. Testing your auditors and clients already recognise.
  • Fast-track testing within 24 hours where required. Free retest of every fix included.
  • Live findings via your client portal, not a four-week PDF.
  • Fixed price from £3,500 for a single-role, single-app scope, agreed up front. Most engagements run £5,000 and up. No day-rate surprises.
What clients say
There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.
CelloriDan WilcocksonFounder, Cellori

Under NDA Further named references available on a scoping call.

What happens next
  1. We reply within one business day with a fixed-price quote from a named CREST assessor.
  2. You approve the scope and we book a start date, usually within 24 hours.
  3. Live findings land in your client portal as we test, with a free retest of every fix.
Accredited & recognised
CREST member Cyber Essentials certified Cyber Essentials Plus certified IASME certifying body ISO 27001 certified ISO 9001 certified UK Cyber Security Council Crown Commercial Service supplier

Get your fixed pen test quote in 24 hours

⚡24h reply ✓CREST tester ↻Free retests

or book a 20-min scoping call first

We reply within one business day. Your data stays with us. No newsletter signup.

COMPLIANCE READY

Reports Mapped to Every Framework

Findings are written so your team can reference the report against each framework without translation work.

ISO 27001:2022

Annex A.8.8 management of technical vulnerabilities plus A.5.15-5.18 and A.8.2-8.5 access control validation.

SOC 2 Type I & II

CC6 logical access, CC7 system operations, CC8 change management evidence.

PCI DSS

Requirement 11.4 application penetration testing across cardholder data environments, including ecommerce penetration testing for online retail platforms.

FCA SYSC

SYSC 4.1.1R, 6.1.1R, 13 mapped to each finding for FCA-regulated firms.

UK GDPR

Article 32 effectiveness testing, customer-data security controls, ICO-acceptable evidence.

Cyber Essentials Plus

Direct certification through our IASME body status, single-vendor delivery.

PRICING

Transparent Vercel AI SDK Penetration Testing Pricing

EJN Labs Vercel AI SDK Penetration Testing prices start at £6,090. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.

✦ ALWAYS · ON EVERY TIER · NO EXCEPTIONS ✦
✓Free retests, no time limit
✓Free rescheduling
✓No cancellation fees
✓24-hour scope to active testing
✓Live findings to client portal
✓Executive + technical report
✓60-min walkthrough call
✓Letter of attestation
CHATBOT / RAG
£6,090–£12,090
Depends on AI system complexity

Single LLM-powered chatbot, basic RAG (≤100 documents), no agent tools. Around 5 to 7 working days from kickoff to report.

Get a fixed quote
ENTERPRISE AI
£25,090+
Depends on AI system complexity

Production AI platform, multi-agent orchestration, regulated AI use case (FCA, NHS), custom-trained models. Around 12 to 18 working days from kickoff to report.

Get a fixed quote

Full UK pen test cost guide

WHY EJN LABS

What You Get From Vercel AI SDK Penetration Testing

Six concrete differentiators competitors don’t all match.

CREST-Certified Testers, Verifiable

Every test by a CREST-certified pen tester (CRT, CCT APP, CCT INF where applicable). Verify our company status at crest-approved.org.

24-Hour Startup, Where Required

From signed scope to active testing in a single business day for incident response, audit deadlines, or regulator-driven timelines.

Live Findings, Not 4-Week PDFs

Critical issues reported during testing through your client portal. Your team remediates while testing continues.

Audit-Ready Reports

Executive summary plus full technical report with CVSS scores and explicit framework mappings (ISO 27001, SOC 2, PCI DSS, FCA SYSC).

Free Retests, Standard

Verify remediation of every finding before close-out. Letter of attestation for audit submission included. Most competitors charge £1,500-£3,000 per retest.

UK-Based CREST Testers

Every engagement performed by vetted, UK-based CREST-certified testers, matched to your needs, security clearance, and compliance scope.

FAQ

Frequently Asked

What access do you need to test our AI SDK application?

We need accounts for each role that can use the chat or agent, and the URL of a staging or production deployment. A grey-box option adds read access to the route handlers and tool definitions, which speeds up testing of each tool.

Will testing touch live data or run real tools?

That is agreed first. Where tools send messages, write records or call paid APIs, we can test on staging, or against tools with test credentials. We do not run destructive tests or export real customer data without written agreement.

How long does a Vercel AI SDK penetration test take?

A single application with one agent or chat route sits in our 5-day single-application scope, with the report typically landing around 5 to 7 working days after kickoff. Several agents, many tools or separate apps move into a larger scope.

Does it matter which model provider we use?

Not for what we test. The AI SDK works across providers, and we test your application’s routes, tools and handling around the model. The model provider’s platform is out of scope.

What is out of scope?

Vercel’s platform, the AI SDK’s source code and your model provider’s systems. Third-party services your tools call, and the Vercel project settings, are covered by a separate Vercel security review where you want them tested.

Does Vercel place rules on customer penetration testing?

We did not find a published Vercel penetration-testing policy for customers, and Vercel’s Acceptable Use Policy is the document to check. We confirm the current terms with you during scoping and test to them exactly, limiting testing to your own application at a volume agreed in advance.

Is EJN Labs CREST accredited?

Yes. EJN Labs is a CREST-accredited company, and every Vercel AI SDK engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.

EXPLORE EVERY SERVICE

20+ CREST-accredited testing services in one place

Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.

Penetration testing services
READY TO START

Get a fixed price for your AI SDK application

In an AI SDK app the browser sends the whole conversation to your route, and any tool with an execute function runs automatically. We test both from a real user’s side. EJN Labs is a CREST-accredited UK company providing penetration testing for apps built on the Vercel AI SDK, from £6,090 for a 5-day single-application scope, quoted within 24 hours.