CVE-2026-134299
SurrealDB 3.0.4 before 4.0.0 Memory Exhaustion via GraphQL WebSocket Upgrade
High · 8.7Fix available
- CVSS
- 8.7
- EPSS
- 0.78% (p53)
- Published
- 2026-11-21
- Age
- 8d old
- Modified
- 2026-11-23
- Product
- surrealdb surrealdb
- Aliases
- GHSA-p3c2-wh5f-jwqm
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Description
SurrealDB 3.0.4 before 4.0.0 does not apply operator-configured WebSocket frame, message, and buffer size limits to the GraphQL WebSocket upgrade handler at GET /graphql, falling back to permissive library defaults. Unauthenticated remote attackers who supply the target namespace and database in request headers can hold up to 64 MiB of in-flight data per concurrent connection, exhausting server memory and degrading availability.
Fixed in
4.0.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | surrealdb | >=3.0.4, <4.0.0 | 4.0.0 |
Sources
- NVD · first seen 8d ago · NVD terms of use
- OSV · first seen 8d ago · CC-BY 4.0
- CVE List · first seen 8d ago · CVE Terms of Use
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-p3c2-wh5f-jwqm vendor-advisory
- https://github.com/surrealdb/surrealdb/commit/b80f46b3131905175d26d5085246efcd81895cd4 patch
- https://www.vulncheck.com/advisories/surrealdb-3.0.4-before-4.0.0-memory-exhaustion-via-graphql-websocket-upgrade third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134299.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-134299 advisory