Watson Standard1
Research · AI connections and access checks Written by Bryce Watson

← All research

Your app's AI connection needs the same access checks as your API. Published flaws show it being missed, and a sample app shows how.

If you let AI assistants such as Claude or ChatGPT use your product on a customer's behalf, the connection they come in through needs the same access checks your API makes, and it can ship without them. That connection is often built with MCP (Model Context Protocol), a standard way for an assistant to call a product's functions, and your API is the door your own app already uses to fetch and change data. So I had AI agents read the published security advisories about MCP, and had an AI coding session build a small two-customer app whose assistant connection skips the API's checks, to show how the gap happens and which change fixes it.

The short version

  • Between September and November 2026, five open-source products published advisories, each with a fix, saying their assistant connection had skipped a check their own API made. I don't know how common the gap is, because nobody counts the products that got it right.
  • In those advisories, sign-in was rarely what was missing. More often it was a rule about what a request may contain (a setting the product's API blocks, say), or about whose data it was.
  • On the sample app, a stranger with no sign-in read and deleted another customer's invoice through the assistant connection. Once sign-in was added, any signed-in user could still do the same, and that's the version I'd watch for because it looks finished.
  • Before you switch yours on, ask whoever built it whether the assistant tools go through the same checked code as the API or call the code underneath it. Section 5 has that question, four more, and three checks to run on a test copy.

The sample's tools were written for this test to skip the API's checks. The official MCP guide's example has no tools like them, and the guide isn't at fault. The advisories read are the ones GitHub reviewed and published from August 1 to November 20, 2026 whose text or package name mentions MCP (an advisory is a public notice of a flaw and its fix). AI reading agents did the first full read of them, and an AI coding session did the build and the tests. I haven't run or checked any of it myself. Section 6 has the detail.

Published

1 Why an assistant connection can miss your API's checks

Products are starting to let AI assistants such as Claude or ChatGPT use them directly. The assistant asks your product to look something up or make a change on a customer's behalf. A common way to do that is MCP.

Often the rules about who can see what live in the part of the code that handles web requests: check the sign-in, find the customer, check the role, then fetch the data. Underneath sits the code that reads and writes the database, which trusts whatever calls it.

An assistant connection is new code that offers "tools" such as "list invoices" or "delete invoice". The quickest way to write a tool is to call the database code directly. A tool written that way works on the first try and skips every rule in the layer above.

The official MCP guide for TypeScript (a common programming language for web products) is direct about what its first example leaves out: "The handler trusts its caller: it validates no Host header, no Origin header, and no token." The same guide says its helpers for common web frameworks turn the Host and Origin checks on by default for a server that listens only on its own machine, and it sends you to a separate page for requiring authorization. The session read that as leaving the check of who is calling to the builder, with nothing in the first example checking what a caller may do once they're in. That makes the safe version something you build on purpose.

2 What the published flaws show

GitHub, the code-hosting site, reviews security advisories (public notices of a flaw and its fix) for open-source software and publishes them. This section covers the ones mentioning MCP that were published between August 1 and November 20, 2026. There are 181 after withdrawals.

The most common missing check was a rule about what a request may contain, such as a blocked setting or file location. After that came a rule keeping one customer out of another's data, and a limit on who can reach the connection at all. Sign-in itself was missing only once. The list below the table has the count for each.

The table counts them. Of the 181, 15 are about an ordinary product whose assistant connection was missing a check derived. By ordinary I mean a product that isn't itself an MCP tool or toolkit. Each advisory was sorted into one of four kinds, and the table splits the first kind into two rows. Section 6 has the breakdown and says how the reading and sorting were done.

KindAdvisories
An ordinary product whose advisory says its API had a check the assistant connection skipped8
An ordinary product's assistant connection missing a check, where the advisory doesn't say the API had it7
A flaw in a toolkit used to build these connections22
A separate program whose only job is to connect an assistant to some other service, or a developer tool114
MCP mentioned only in passing30

Across the 15, a connection with no sign-in at all was the rare case, and more often it asked who you were and then skipped a rule that should apply after that:

Two advisories, Dagu's and one of Nginx UI's, say in effect that the check sat in the web layer and the assistant connection didn't pass through it.

The five products counted at the top of this page are the ones behind the 8 advisories in the table's first row. The reading window started August 1, and all 15 came out from September on. The 15 come from eight open-source projects, each of which published the advisory along with a fixed version or build. Five have at least one advisory among the 8: Nginx UI, SiYuan, Langflow, Dagu and process-compose. Three appear only among the 7: Payload, n8n and ezBookkeeping. Publishing an advisory is the responsible thing to do, and it's how the rest of us get to learn from these.

There's one more, from just before that window. The US cybersecurity agency CISA keeps a list of flaws known to be used in real attacks, and one entry on it names MCP measured. It's a flaw in LiteLLM whose advisory was published July 22, 2026, and CISA added it on September 2, 2026. The assistant connection accepted a made-up sign-in token. So sign-in still matters, even though it was rarely the missing check among the 15. It's the only one of these on that list, so I wouldn't call this widely attacked. I'd call it a mistake that's easy to make and is being made.

3 The test: one sample app and four versions of its assistant connection

The sample is a pretend invoicing product with two customers, Acme and Birch. Acme has an admin and an ordinary member. Birch has an admin. The API does what it should. It requires sign-in, shows each customer only its own invoices, and lets only an admin delete.

The session added the assistant connection four ways. Each time, the same four requests went through the API and through the assistant connection, as a stranger and as each of the three users: list invoices, read Birch's invoice, delete Birch's invoice, delete an Acme invoice. That's 16 checks per version. The figures in the table below are counts from those runs measured.

In versions 1 to 3 the tools skip the API's checks because they were written the quick way, calling the database code directly, and that matters for reading the numbers below. Several advisories describe the same gap, though each of those products got there its own way. Neither the official guide nor the starter forces you to write tools like that, and neither claims to add access rules for you. The guide's example has no such tools, so none of this is a fault in the guide. Each row of the table is what you get if you stop at that step.

VersionAssistant connection allowed what the API refusedAssistant connection listed more than the APISame outcome
1. The official guide's getting-started example, with tools wired straight to the database10 of 163 of 163 of 16
2. The same tools on the most downloaded of the starters compared10 of 163 of 163 of 16
3. Version 1 plus the official sign-in gate6 of 163 of 167 of 16
4. The gate, plus tools that use the API's own checks0 of 160 of 1616 of 16

Versions 1 and 2 use identical tools, so the starter is the same test on a second package. I don't count it as separate evidence. Version 4 was built to match, so its 16 of 16 only confirms that the fix works with the toolkit. The 16 checks don't include a second-confirmation step or two callers at once. A made-up sign-in key got its own try on versions 3 and 4, and both turned it away. They did it with a generic server error (HTTP 500) where a clear "not signed in" (401) is the tidy answer, which is a rough edge in the sample's key checker.

In versions 1 and 2 a stranger listed every invoice, read Birch's payroll invoice and deleted it. The API answered those same requests with "sign in".

Version 3 is the one I'd watch for, because it looks finished. The stranger is turned away. But any signed-in user, admin or not, could still read and delete the other customer's invoices, and Acme's ordinary member could delete an Acme invoice the API reserves for admins. The sign-in gate knew who was calling, but the tools behind it never checked whether the invoice belonged to that caller's company or whether that caller was allowed to delete it.

Compared with version 1, version 4 has two changes: the sign-in gate from version 3 sits in front, and each tool passes the caller's identity to the same checked code the API uses, instead of calling the database code. After that the assistant connection gave the same answer as the API 16 times out of 16, refusals included. In a small sample that was a short change. In a real product it depends on how the code is laid out, and I haven't measured that.

4 A flaw you can inherit from the toolkit

Some flaws come with the toolkit, the library your developer builds the connection with. One in the official TypeScript toolkit, published October 20, 2026, meant that if a product was set up so that every customer's requests went through one shared connection, a reply could be delivered to the wrong customer.

The session reproduced it on one computer with made-up data. On the affected version, two customers' requests overlapped and carried the same request number, which is normal because every client starts counting from the same place. Birch's side received Acme's private reply and Acme's side received nothing, four runs out of four measured. On the fixed version the second request is refused and nobody gets someone else's reply. The advisory describes a second arrangement that was also affected. In the one saved run of that arrangement, each customer got its own reply.

So ask whoever built your connection whether the toolkit is up to date, and whether someone has read the notes that came with each security fix. This fix makes an app written the old way start failing until its code is changed. Several other fixes in the official toolkits are settings that stay off until someone turns them on, and their advisories say that upgrading alone changes nothing.

5 What to check before you switch it on

This section has three checks you can run and five questions to ask whoever built the connection. The three checks are the ones run on the sample app. They cover what went wrong there, a stranger or another customer reading and deleting data. A check passes when the assistant connection gives the same answer your API gives. It refuses where the API refuses, and it shows nothing of another customer's.

Run the three checks against a copy that holds only made-up data and has no live connections, meaning no real email, payments or outside services. Never run them on your live product. A staging copy may hold copied real data or live links, so look before you start. Any of the checks can change or delete something if the connection is broken, and check 3 tries a delete on purpose. The copy shouldn't be able to reach your real internal systems either.

The three checks

The five questions

If you're not the one who built the connection, you can stop here and forward this section. Everything below is for the developer. It has each question in full, then how to run the three checks.

For the developer. Run everything below on a test copy that holds only made-up data and has no live connections.

The five questions in full. These five weren't run on the sample app, which has nothing for them to test, so they stay as questions. Each comes from a published flaw, and each says what a good answer covers. Don't try to prove them by sending requests to a live product, because some would have to change, send or reach something to make the point.

How to run the three checks. The three checks can be run with the MCP Inspector, a free tool from the MCP project for opening an MCP connection and calling its tools by hand. All three were run with version 2.16.0 on the sample app. The connection steps, check 1 and the refusals in checks 2 and 3 were clicked through in its web screen. The control steps in checks 2 and 3 were run with its command-line form. The sample has no files or attachments, so that part of check 2 wasn't run. It needs a current version of Node.js, which is a free install, and one line typed into a terminal. Version 2.16.0 asks for an up-to-date Node 22, 24 or 26.

Before you start you need three things: the web address of the assistant connection, a test sign-in key for one user at each of two test customers (one of those users at the lowest level), and the id of one record that belongs to each customer.

  1. Knock with a working key first, then a made-up key, then no key. Connect once with a test key that should work. The card should say Connected. That proves the address and settings are right, so a later Failed means the connection refused you rather than that something was mistyped. Switch it off, change the key to a random one and connect again. Then remove the key and connect a third time. Pass: Connected the first time, and the other two times Failed or sent to sign in. With no key, the Inspector may try to start a sign-in. On the sample app that ended in an error about registration. If your product opens a sign-in page instead, don't complete it. Being sent to sign in is the refusal, and finishing it would connect you and hide the result. If the made-up key or no key does connect, the next step decides it.

    If either of those connects, call one read-only tool, such as a list or a read. If the call works, the check fails. If the call is refused, the check passes, because the connection refuses where it counts, though one that lets anyone connect is still worth fixing.
  2. Run a two-customer test through the assistant connection. First, with customer B's key, ask for one of B's records by its id. It should come back, which proves the id is right. A mistyped id gets the same "not found" as a refusal. Then, with customer A's key, ask for that same record, and ask for "all records". If your product has files or attachments, do the same pair of steps with one of B's files: B's key first, to prove the file reference is right, then A's. Pass: with A's key the tool answers with an error such as "not found", and "all records" shows only customer A's. The pass counts only if the first step returned the record. On the sample app, version 4 answered "404: not found" and listed only Acme's two invoices measured. Version 3 handed over Birch's payroll invoice.
  3. Use your lowest-level user's key and try every tool an admin would use, on records of that user's own customer. That way a refusal is about the user's level and not about whose record it is. First read one of those records with the lowest-level user's key. It should come back, which proves the id is right. Then try each admin tool on that same record. Whatever that user can't do in the app, they shouldn't be able to do by asking an assistant. Pass: a refusal about permission, such as "admins only". If no admin tool is listed for that user, call one by its name anyway. It passes only if that's refused too. In FastMCP, in some setups, a client that knew a tool's identifier could call a tool the access policy denied. The sample lists every tool to every user, so the by-name call wasn't run. "Not found" doesn't count. On the sample app a mistyped id got "not found" from the admin's key too. On the sample app, version 4 let Acme's ordinary member read one of Acme's own invoices and answered "403: admins only" when that member tried to delete it.

If you already run the two-customer test from my earlier write-up, check 2 is that same test pointed at the assistant connection, and check 1 is its signed-out check. Check 3 is a different one. It's about a user's level inside one customer.

6 How this was done, and its limits

On November 21, 2026 I started an AI coding session and had it pull the advisories from GitHub's public advisory database and CISA's public list. It pulled every reviewed advisory published from August 1 to November 20, 2026. That's 3,515 measured. Of those, 183 mention MCP measured, and 2 were later withdrawn as duplicates, which leaves 181. AI reading agents, each working from the same written brief, read all 183 in full, once each, and sorted each into one of four kinds. The session itself then re-read the key sections of 40. Those are the 37 in the first three rows of section 2's table, and 3 that started there and moved to the fourth row, one of them after a later review of this draft. The same session built the sample app and ran the test, the reproduction and the Inspector steps on one computer, with made-up data, using the official MCP TypeScript packages, the mcp-handler starter and MCP Inspector 2.16.0 as they stood that day. I haven't run or checked any of it myself. Nothing ran against anyone else's system. I've kept the scripts and results so the counts and the test can be re-run.

The labels beside the numbers mean:

Measured
Counted in the work described here, or read on the source that owns the fact (a product's own documentation, say).
Derived
Worked out from what was measured, by arithmetic or by judgment, such as sorting the advisories into kinds.

Section 2's table rests on the sorting, which is a judgment call derived. The first row's 8 advisories say outright that the normal API had the check. They are six distinct flaws in five products, and four of those advisories are about one product. The second row is 7 more where an ordinary product's assistant connection was missing a check and the advisory doesn't say the API had it. The 7 include flaws that aren't specific to the assistant connection: in 3 the same flaw sits in the product's other routes, and 1 is in a route that sets the connection up, which isn't the connection itself. Most of the remaining advisories are about the toolkits, or about separate programs built only to connect an assistant to some service.

In section 2's list of missing checks, two of the 15 advisories carry two labels each, which is why that list adds up to 17.

These are the limits of that work:

7 Sources

Connects to

Other pieces that share a theme with this one.

Your pages don't decide who sees what

Anyone can skip your pages and send requests straight to your database, API or AI assistant connection, so each access rule belongs in the database or the server code every request passes through.

Some of your risk sits with companies you rely on

Your host, scripts other companies serve on your pages, services holding your keys and the packages you build with can let in a problem your own code can't fix, so list them and who fixes what.

8 Want me to look at your app?

Have a customer's security questions, or a public repo? Ask for a free written read. Once I've said I can take it, you send them, and I send back in writing the three things most likely to stall the deal. It's free. I read what you send, never your live app, and I never use a key I find.

Free written read