CVE-2026-9372 attributes the SSRF in Vane 1.12.1 to manipulation of the baseURL argument in src/app/api/providers/route.ts. The argument reaches a fetch() call because the handler that reads it has no authentication, no session check, no API key, no rate limit. The handler shares that property with every other file under src/app/api/. The issue that produced this CVE was filed by August829 on 2026-04-26. It was one of three filed the same day by the same researcher. The CVE record covers one.
CVE-2026-9372: Vane's baseURL Was Not The Gate. The Endpoint Was Public.
vendor
patterns
cve
The route was public
src/app/api/providers/route.ts is forty lines split across a GET and a POST handler. The POST handler is the one the CVE description names. The narrator wants to walk it from input to network.
export const POST = async (req: NextRequest) => {
try {
const body = await req.json();
const { type, name, config } = body;
if (!type || !name || !config) {
return Response.json(
{ message: 'Missing required fields.' },
{ status: 400 },
);
}
const registry = new ModelRegistry();
const newProvider = await registry.addProvider(type, name, config);
return Response.json(
{ provider: newProvider },
{ status: 200 },
);
} catch (err) {
console.error('An error occurred while creating provider', err);
return Response.json(
{ message: 'An error has occurred.' },
{ status: 500 },
);
}
};The only check is whether the JSON body parsed and whether three top-level keys are present. There is no if (!await verifySession(req)) ahead of the registry call. There is no API-key header read. There is no rate limit. The Next.js App Router contract is that any file named route.ts under src/app/api/ is mounted as a public HTTP handler with no enforcement other than what the file itself runs. This file runs none. The other fifteen files under src/app/api/ answer the same description, by inspection and by the second issue August829 filed the same morning.
baseURL is forwarded by design
addProvider in src/lib/models/registry.ts looks up the provider class by type, constructs an instance with the attacker's config, then immediately calls getModelList() on it. The contract of "add a provider" is "test the provider's reachability before persisting it." The reachability test is the SSRF.
async addProvider(type, name, config): Promise<ConfigModelProvider> {
const provider = providers[type];
if (!provider) throw new Error('Invalid provider type');
const newProvider = configManager.addModelProvider(type, name, config);
const instance = createProviderInstance(
provider, newProvider.id, newProvider.name, newProvider.config,
);
let m: ModelList = { chat: [], embedding: [] };
try {
m = await instance.getModelList();
} catch (err: any) {
m = {
chat: [{ key: 'error', name: err.message }],
embedding: [],
};
}
...
}For type: "ollama", getModelList calls getDefaultModels in src/lib/models/providers/ollama/index.ts:
async getDefaultModels(): Promise<ModelList> {
try {
const res = await fetch(`${this.config.baseURL}/api/tags`, {
method: 'GET',
headers: { 'Content-type': 'application/json' },
});
const data = await res.json();
...
} catch (err) {
if (err instanceof TypeError) {
throw new Error(
'Error connecting to Ollama API. Please ensure the base URL is correct and the Ollama server is running.',
);
}
throw err;
}
}The fetch is the sink. The Ollama provider's UI configuration field describes baseURL as "The base URL for the Ollama," with a placeholder of http://host.docker.internal:11434 inside the container and http://localhost:11434 outside. The framing is local-facing. The convention says the only thing on the other end of this fetch is the operator's own Ollama daemon, running on the same machine as the Vane server. The convention is documentation. The String(raw.baseURL) cast in parseAndValidate is the entire validator: any string is a baseURL.
The LM Studio provider has the same shape, fetch(${baseURL}/v1/models) with a placeholder of http://localhost:1234. The Lemonade provider has the same shape with one extra:
const res = await fetch(`${this.config.baseURL}/models`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
...(this.config.apiKey
? { Authorization: `Bearer ${this.config.apiKey}` }
: {}),
},
});An attacker who can write the baseURL can also write a bearer token the target receives. Three of Vane's seven provider types take a baseURL and call fetch on it during registration. The CVE description names one parameter; the parameter has three sinks, and one of them is also a request-forgery primitive that can deliver attacker-chosen Authorization headers to attacker-chosen hostnames.
The error message echoes the response
The catch in addProvider ships err.message back to the client through the JSON response. When the fetch target returns HTML and the Ollama provider tries to JSON-parse it, Node's JSON.parse throws SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON. The <!DOCTYPE fragment is the first bytes of the target's response body. They reach the attacker on the next HTTP roundtrip:
{
"provider": {
"id": "2065ddce-2bbb-4a7b-91c6-4e12d33d6015",
"name": "ssrf-test",
"type": "ollama",
"config": { "baseURL": "http://127.0.0.1:3000" },
"chatModels": [
{
"key": "error",
"name": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
}
]
}
}The line in registry.ts that produces this is one assignment, name: err.message. The error path was written under the assumption that the only thing on the other end of the fetch was an Ollama daemon that returned malformed JSON, and that surfacing the error helped the operator debug their config. Under the assumption that the other end is an attacker-controlled hostname, the same line is a side channel that converts a blind SSRF into a semi-readable one. Both assumptions are present in the same file. The handler does not distinguish between them because there is no caller it distinguishes between.
The persistence model compounds the primitive. addProvider calls configManager.addModelProvider before the fetch, which writes the provider's config to data/config.json on disk. The malicious provider survives the request, and the GET /api/providers endpoint will re-trigger getModelList() on every poll for any client that lists providers. The SSRF is not one-shot. It is persisted state.
Three issues, same day, same researcher
The CVE description ends with "The project was informed of the problem early through an issue report but has not responded yet." The issue is #1124, opened by GitHub user August829 on 2026-04-26 at 01:58 UTC. The body is a forty-three-section CVE-formatted writeup with the curl commands, the response samples, and an affected-code table reproduced verbatim. The issue has zero comments thirty-one days later.
August829 opened two other issues that morning. #1122, four minutes earlier, documents that GET /api/config returns the full configuration including every provider's API key in plaintext. #1123, two minutes earlier, documents that all sixteen API routes in src/app/api/ are unauthenticated and enumerates each one with its primitive: create-and-delete providers, read-and-modify chat history, upload files, hijack reconnect sessions, change the SearXNG URL. The three issues share an author, a day, a format, and a tone.
The maintainer has not commented on any. The one comment on #1122 is from a third-party user on 2026-04-28:
Well, this works on version 1.12.2, but until basic authentication gets added (which I've seen is planned), this issue or #1123 won't be fixed.
package.json on the current master branch reports "version": "1.12.2". The route handler shown above is from that branch. The "planned" fix the comment alludes to is not in the tree.
The CVE record covers #1124. It does not cover #1122 or #1123, both of which were filed first. MITRE assigned a CVE number for the manipulation of baseURL. The manipulation is possible because of #1123. The CVE picked the argument. The issue picked the architecture. The maintainer picked neither.
The README is the gate
Vane's README opens with: "a privacy-focused AI answering engine that runs entirely on your own hardware." The docker-compose.yaml shipped at the repository root binds the container's port 3000 to the host's port 3000 without an address qualifier, which means 0.0.0.0:3000 by default. The Docker installation is the recommended path. The Docker Hub page lists the image as itzcrazykns1337/vane, with public pulls. The phrase "runs entirely on your own hardware" is doing the work of an authentication middleware everywhere except at the network boundary.
This is internal-only-by-convention applied to the entire HTTP surface of a Next.js application. Prior exhibits of the pattern have surfaced it at the granularity of one header (x-middleware-subrequest in CVE-2025-29927), one socket bind (KTransformers' all-interfaces ZeroMQ in CVE-2026-26210), one route group (free5GC's UPI bus mounted on the SBI listener), one transport scheme (ActiveMQ's vm:// in the JMX scheme registry). Vane's is the same shape applied flat to every route.ts under src/app/api/. Sixteen handlers, no middleware, one convention. The convention is the documentation's promise. The network does not read documentation.
The same architecture, the next CVE
A month after August829's three issues, a second researcher filed two more. 360AlphaLab opened #1139 on 2026-05-25 at 11:40 UTC, documenting a second-order SSRF where the unauthenticated POST /api/config rewrites the SearXNG search URL stored in the global config, and a later call to GET /api/discover fetches the new URL. They opened #1140 sixty-one seconds later, documenting an SSRF where the user's chat message can ask the LLM to scrape arbitrary URLs through the citation-fetching subsystem. Both issues have zero comments. The maintainer has not responded to the second researcher either.
Five public security issues now exist against Vane between 2026-04-26 and 2026-05-27, from two independent researchers. One has a CVE. Four do not. The architecture they all describe is one architectural decision: a Next.js App Router project that mounts handlers under src/app/api/ and does not insert any per-request authentication step between Next.js's router and the handler's body. The same decision is the source of the API-key disclosure in #1122, the chat-history read in #1123, the SSRF in #1124, the second-order SSRF in #1139, and the LLM-triggered SSRF in #1140.
This is the design-debt-driver shape. A single architectural commitment, taken because the deployment model was assumed to be "the operator on their own laptop," produces a steady stream of CVE-eligible primitives whenever a researcher reads a different route.ts. The patch that closes CVE-2026-9372 will probably add a URL-shape regex to OllamaProvider.parseAndValidate, or refuse baseURL values whose hostname resolves into RFC 1918 space. The patch will not add the missing middleware. The next CVE from this repository will be one of the other fifteen endpoints, or it will be the cousin of baseURL in a different parseAndValidate, or it will be a chained primitive that uses POST /api/config to redirect a downstream fetch. The researcher who files it will not be the first.
The Vane repository has 23,000 stars. The Docker image has 50,000 pulls. The "runs entirely on your own hardware" framing is what most readers of the README will remember. The framing is what August829 and 360AlphaLab read carefully enough to disprove on every endpoint they looked at.
CVE-2026-9372 closes when the argument gets a regex. The other fifteen routes are still public.