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.
| Kind | Advisories |
|---|---|
| An ordinary product whose advisory says its API had a check the assistant connection skipped | 8 |
| An ordinary product's assistant connection missing a check, where the advisory doesn't say the API had it | 7 |
| A flaw in a toolkit used to build these connections | 22 |
| A separate program whose only job is to connect an assistant to some other service, or a developer tool | 114 |
| MCP mentioned only in passing | 30 |
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:
- A rule about what's allowed in a request (missing in 8 of the 15). One product's API refused dangerous settings. Its assistant tool for the same job saved them without checking.
- Keeping one customer out of another's data (3). In one, a signed-in user could read another user's uploaded files through the assistant connection while the normal download link answered "not found".
- Who can reach the connection at all (3).
- A second confirmation (1). One product asks for a one-time code before a risky change. Through the assistant connection, ordinary sign-in was enough.
- Keeping access to what the user approved (1). In one product, an app a user had approved for one workflow could renew its access into a different one.
- Sign-in (1).
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.
| Version | Assistant connection allowed what the API refused | Assistant connection listed more than the API | Same outcome |
|---|---|---|---|
| 1. The official guide's getting-started example, with tools wired straight to the database | 10 of 16 | 3 of 16 | 3 of 16 |
| 2. The same tools on the most downloaded of the starters compared | 10 of 16 | 3 of 16 | 3 of 16 |
| 3. Version 1 plus the official sign-in gate | 6 of 16 | 3 of 16 | 7 of 16 |
| 4. The gate, plus tools that use the API's own checks | 0 of 16 | 0 of 16 | 16 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
- Knock with a working key, then a made-up key, then no key. Pass: only the working key can call a tool.
- Confirm a record's id with its owner's key, then ask for that record with another customer's key. Pass: the other customer is refused and sees only its own records.
- Try an admin's tools with your lowest-level user's key, on that user's own customer's records. Pass: a refusal about permission, or the tool isn't listed and calling it by name is refused too.
The five questions
- Does every action that needs a second confirmation in the app need it through the assistant connection too?
- Do the assistant tools go through the same checked code as the API, or do they call the code underneath it?
- Who can reach the connection, and what decides that?
- Is each customer's connection kept apart from every other's?
- Is the toolkit on its latest version, and has someone read the note that came with each security fix?
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.
- Does every action that needs a second confirmation in the app need it through the assistant connection too? A one-time code or an approval protects an action only if every way of doing it asks for it. In Nginx UI, for users who had turned one-time codes on, changing settings needed the code through the API and only ordinary sign-in through the assistant connection. A good answer names each such action and says the connection demands the same step, or that the action isn't offered there at all, and shows one being refused without the step on a test copy.
- Do the assistant tools go through the same checked code as the API, or do they call the code underneath it? Rules about what a request may contain (blocked settings, blocked file locations, web addresses inside your network) hold only if the tools pass through them. Dagu's advisory says an earlier fix sat in the web layer while the assistant side called the function underneath, and Nginx UI's says a safety check ran on three of the four ways of writing settings. An answer of "they call the same function" doesn't settle it, because that was true of Dagu, whose check ran in the web layer above that function. A good answer is that every check the API runs, including the ones in the web request layer, sits in code that both the API and the assistant connection pass through. Better still, it comes with a blocked input being refused through the assistant connection on a test copy.
- Who can reach the connection, and what decides that? A limit such as "this machine only" or "these addresses only" is easy to get wrong. In ezBookkeeping the address limit trusted a header the caller could forge, and in process-compose the connection was meant to run only on the developer's own machine but had no sign-in, so a website open in the developer's browser could reach it. A good answer says the connection requires sign-in wherever the caller is, since "this machine only" isn't enough by itself. It also says where any address limit is enforced, that it doesn't rely on anything the caller sends, and that someone tested it from a place that should be refused, including with a forged forwarding header.
- Is each customer's connection kept apart from every other's? If customers share one connection inside the server, a reply can go to the wrong one. That's the flaw in the official TypeScript toolkit described in section 4 (its advisory). A good answer is that each connection gets its own server object and its own transport (the part that carries the messages), since sharing either was affected, and that the toolkit is on a fixed version. A test with two customers at once is worth asking for, but a clean run doesn't settle it. In section 4's test, one affected arrangement still gave each customer its own reply.
- Is the toolkit on its latest version, and has someone read the note that came with each security fix? Some fixes are settings that stay off until someone turns them on. The official TypeScript and Python toolkits each fixed a flaw where a sign-in key issued for a different service was accepted, and the setting that refuses those keys is off by default in both even after upgrading. It matters only if the service that signs your users in also issues keys for other services. A good answer gives the version in use next to the latest one, and says that setting is on, or why it doesn't apply.
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.
- Start it. Type
npx @modelcontextprotocol/inspectorinto a terminal. It prints a web address. Open that in a private browser window, so a sign-in you already have with your own product can't finish the connection for you. - Point it at the connection. Click Add Servers, then Add manually. Give it any name, set Transport to streamable-http, put the connection's web address in URL, and click Add.
- Give it a key, or don't. For a key, click Settings on the new card, open Custom Headers and click Add Header. Type
Authorizationin the Key box. In the Value box typeBearer, a space, and then the test sign-in key. To change the sign-in key later, edit the Value box. To remove it, click the X at the end of the row. A change takes effect the next time you connect. - Connect. Flip the switch on the card. "Connected" means it let you in. "Failed" with an error means it turned you away.
- Call a tool. Open the Tools tab, pick a tool, fill in its fields and click Execute Tool. The answer shows under Results.
- 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. - 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.
- 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:
- The advisories count reported flaws. Nobody counts the products that added an assistant connection and got it right, so 15 of 181 is a share of reports. It says nothing about the share of products.
- GitHub's database covers open-source software. A closed, hosted product with the same mistake wouldn't appear in it.
- Sorting advisories into kinds is judgment, and a different reader would move a handful. Of the 144 in the last two rows of the table, 141 were read once, so a case that belongs in the first two rows could have been missed there.
- The sample is one small app. It shows what happens when a connection's tools skip the API's checks, and it says nothing about how any real product is built.
- The reproduction covers one toolkit flaw, in one language.
- The Inspector steps were run against the sample app only. A real product's sign-in may behave differently when no key is sent.
- The five questions in section 5 come from the advisories. Nothing about them was tested.
7 Sources
- GitHub Advisory Database, reviewed advisories published August 1 to November 20, 2026.
- CISA Known Exploited Vulnerabilities catalog, version 2026.11.20.
- MCP TypeScript SDK documentation, the Serve over HTTP and Require authorization guides, read November 21, 2026.
- The advisories linked in the text.
Connects to
Other pieces that share a theme with this one.
A clean result isn't proof it's safe
A clean scan, a passing health check, a success reply or the tool that built your app saying it's fixed can all show up while the problem is still there, so check the data, code or server directly.
- Updating WordPress doesn't fix this PHP flaw, and the version number may not tell you if it's patched
- I put two AI-built client portals through a security review. Both let a client reach another company's work.
- The test I built to check that one customer can't see another's data
- I tested two free scanners on Supabase's new secret keys. One found none of my 110 test keys.
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