SurrealDB disclosed an MCP session isolation flaw tracked as GHSA-pgh9-49q4-hqcx. Where different users shared an access-method name, the session fingerprint could be based on that method instead of the specific validated JWT identity. In an affected setup, an attacker with a valid lower-privilege token and the session identifier of a more privileged…
Inspect the ClaimsCase · DiggingBeagle record
SurrealDB MCP sessions could inherit another user’s authorization context
A session-fingerprint collision permitted lower-role callers to collide with higher-role MCP sessions in affected configurations; fixed in 3.3.0.
Public disclosure: Oct 19, 2026
Vendor advisory for specified SurrealDB versions and configurations; requires credential/session knowledge; not known to be exploited in production.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The vendor-hosted advisory documents reproducible MCP HTTP authorization collisions using a released binary and identifies patched version 3.3.0. It requires valid account/session material and includes conflicting lower affected-version descriptions; production exploitation and number of exposed deployments are unknown.. Impact is ungraded because no independently measured production-target impact or victim scope is established by this record.
Assessed Nov 4, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-NOV04-SURREALDB-MCP-SESSION-1 · CLM-NOV04-SURREALDB-MCP-SESSION-2 · CLM-NOV04-SURREALDB-MCP-SESSION-3 · SurrealDB GHSA-pgh9-49q4-hqcx: MCP session authorization collision
At a glance
Agent tool servers need principal-bound sessions and per-request authorization. Session IDs must not be treated as authority by themselves, and a JWT’s method label does not uniquely identify a user.
Read the implicationsThe public advisory does not establish real-world victims or measured exploitation prevalence. Whether deployments expose session identifiers depends on their specific transport and access controls. The advisory's package range starts at 3.1.0 while the narrative names 3.2.0; the actual earliest exposed 3.1.x configuration requires separate verification.
Limits and uncertaintyFull account
SurrealDB disclosed an MCP session isolation flaw tracked as GHSA-pgh9-49q4-hqcx. Where different users shared an access-method name, the session fingerprint could be based on that method instead of the specific validated JWT identity. In an affected setup, an attacker with a valid lower-privilege token and the session identifier of a more privileged connection could collide with that authorization context. The vendor documents a fix in version 3.3.0.
This is an identity-binding defect in the tool transport, not proof that a model decided to escalate its own permissions and not a disclosed production compromise. It matters for AI agents because tool hosts often maintain sessions that outlive individual calls: if the transport mixes principals, later tool requests may be evaluated against the wrong identity. Maintainer advisory.
The advisory was published on October 19, 2026, rather than November 3. Its structured package range lists versions from 3.1.0 up to, but not including, 3.3.0, while the detailed description names MCP HTTP transport from 3.2.0 onward. That discrepancy needs a deployment-specific version check; the report reproduces seven of seven checks against a released 3.2.0 binary and a 3.3.0 nightly source revision. The patched release is listed as 3.3.0. Original advisory.
A victim session identifier and a lower-privilege valid credential are prerequisites in the described route. This is not an anonymous takeover, and the presence of an MCP interface does not make it an LLM prompt-injection attack. The authorization collision happens during backend session binding. It differs from wrong-audience MCP token acceptance, where token scope validation is the disputed boundary. Both demand principal-specific authorization at actual tool dispatch.
Mechanism and trust boundary
- 01
Authenticate as a lower-role user
The attacker obtains a valid credential within the affected deployment, rather than forging an unauthenticated request.
Boundary: Authenticated application user to MCP session layer
- 02
Collide with a more privileged session identity
The session fingerprint relies on the common access-method identity instead of reliably binding the validated user principal.
Boundary: JWT identity to session credential isolation
- 03
Issue a tool request under the wrong context
Subsequent MCP operations can inherit another session context when the attacker also knows the victim session identifier.
Boundary: MCP session lookup to database authorization
Claims & evidence
CLM-NOV04-SURREALDB-MCP-SESSION-1SurrealDB documents an MCP session-fingerprint collision when different JWT users share an access-method name in affected configurations.supported
Basis: reported finding
- supportsSurrealDB GHSA-pgh9-49q4-hqcx: MCP session authorization collisionprimary disclosure
Security advisory, vulnerability details
CLM-NOV04-SURREALDB-MCP-SESSION-2The vendor lists SurrealDB 3.3.0 as a fixed version.supported
Basis: reported finding
- supportsSurrealDB GHSA-pgh9-49q4-hqcx: MCP session authorization collisionprimary disclosure
Security advisory, patched versions
CLM-NOV04-SURREALDB-MCP-SESSION-3The October 19 advisory specifies an affected package range beginning at 3.1.0, but its narrative describes affected MCP HTTP transport from 3.2.0; it reports reproducing seven of seven checks on a released 3.2.0 binary.supported
Basis: reported finding
- supportsSurrealDB GHSA-pgh9-49q4-hqcx: MCP session authorization collisionprimary disclosure
GitHub advisory metadata, Affected versions, Description, reproduced binaries
Implications
Agent tool servers need principal-bound sessions and per-request authorization. Session IDs must not be treated as authority by themselves, and a JWT’s method label does not uniquely identify a user.
Controls and mitigations
- Upgrade affected SurrealDB instances to 3.3.0 or later.
- Bind sessions to exact authenticated identity and tenant, and reject cross-principal reuse.
- Exercise multi-user same-method session tests, including leaked/colliding session identifiers.
Unknowns and contradictions
- The public advisory does not establish real-world victims or measured exploitation prevalence.
- Whether deployments expose session identifiers depends on their specific transport and access controls.
- The advisory's package range starts at 3.1.0 while the narrative names 3.2.0; the actual earliest exposed 3.1.x configuration requires separate verification.
Sources and citation
Material revision history
- Nov 4, 2026 · Published version · first publication · revision 217