highCVE-2026-82410Sep 17, 2026

CVE-2026-82410: PocketBase Unhandled Panic in Worker Goroutines

Rohit Hatagale
AI Security Researcher, SecureLayer7

A panic inside any of PocketBase's internal background worker goroutines bypasses the HTTP recover middleware and crashes the entire server process, allowing an unauthenticated attacker to cause a…

Packagegithub.com/pocketbase/pocketbase
Ecosystemgo
Affected< 0.22.48
Fixed in0.22.48
CVE-2026-82410: PocketBase Unhandled Panic in Worker Goroutines

The problem

PocketBase's panic-recovery middleware is scoped to the HTTP request handler chain only. Internal child goroutines (cron workers, realtime subscription workers, backup tasks, and similar background jobs) run outside that scope.

Any unhandled panic in one of those goroutines propagates all the way to the Go runtime with no deferred recover() in the call stack, terminating the server process immediately. An attacker who can craft a request that triggers a code path running inside such a worker can take the server down entirely.

The fix

Upgrade to PocketBase v0.39.7 (primary fix) or v0.22.48 (backport for the v0.22.x line). Both releases wrap all internal worker goroutines with the new routine.SafeWrap helper introduced in commit 30b4184 (v0.22.x backport: f1618ee). No workaround is available for older versions.

Reported by gigioneggiando.

References: [1][2][3][4][5][6]

Related research