---
id: "GHSA-6cf5-gc4q-fm3x"
page: "https://infrastack.ai/live/GHSA-6cf5-gc4q-fm3x"
kind: "vulnerability"
aliases: ["GHSA-6cf5-gc4q-fm3x"]
title: "Private `query.batch` functions could collide, producing unexpected parameter / function combinations"
severity: "medium"
cvss: 5.9
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "@sveltejs/kit", "fixed": ["3.1.1"], "affected": ">= 2.60.1, <= 3.1.0", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["cwe-863", "npm", "package", "svelte", "sveltekit"]
not_affected_if: ["experimental-flag-off", "exported-batch-functions-only", "versions-outside-range"]
published_at: "2026-10-29T23:47:27+00:00"
first_seen_at: "2026-11-09T22:53:15+00:00"
updated_at: "2026-11-09T22:56:16+00:00"
sources: [{"source": "ghsa-repo", "url": "https://github.com/sveltejs/kit/security/advisories/GHSA-6cf5-gc4q-fm3x", "first_seen_at": "2026-11-09T22:53:15+00:00"}]
exploit_sources: []
---

# Private `query.batch` functions could collide, producing unexpected parameter / function combinations

Link for people: https://infrastack.ai/live/GHSA-6cf5-gc4q-fm3x (this .md is for agents)

Under certain conditions, non-exported `query.batch` remote functions in SvelteKit can end up in the same batch, so one function receives arguments meant for another. The sources describe this as a permission and function-mixing flaw (CWE-863) rather than code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:@sveltejs/kit affected >= 2.60.1, <= 3.1.0 fixed 3.1.1

## How to check

- Check the installed version of `@sveltejs/kit` with `npm ls @sveltejs/kit`
- Search the app for `query.batch` and check whether any of those functions are not exported
- Check whether the experimental remote functions flag is enabled in `svelte.config.js`

## Fix

- `@sveltejs/kit` fixed in `3.1.1`; affected range `>= 2.60.1, <= 3.1.0`

## Timeline

- 2026-11-09T22:53:15+00:00 ghsa-repo https://github.com/sveltejs/kit/security/advisories/GHSA-6cf5-gc4q-fm3x

## Documents

- [advisory] Maintainer's advisory: github.com https://github.com/sveltejs/kit/security/advisories/GHSA-6cf5-gc4q-fm3x

## From the sources

Under certain circumstances, private (non-exported) `query.batch` functions could end up sharing a batch, resulting in the arguments from one function being passed to another. This only affects apps using the experimental remote functions flag and non-exported `query.batch` functions.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
