GHSA-84vh-m24q-wjjxHigh

Pocketbase: Unhandled panic in worker goroutines

Published
September 17, 2026
Last Modified
September 17, 2026

🔗 CVE IDs covered (1)

📋 Description

PocketBase already has builtin panic-recover middleware for the regular requests handling but it doesn't cover panics in internal child/worker goroutines which in some situations could cause termination of the server process.

To prevent this from hapenning all existing internal worker functions were wrapped with the new helper routine.SafeWrap(f) (auto recovers and returns any eventual panic as regular error).

The vulnerability was reported by @gigioneggiando and it is strongly recommended to upgrade to PocketBase v0.39.7 (the fix was also backported in v0.22.48 in case you are using older PocketBase < v0.23.0).

🎯 Affected products2

  • go/github.com/pocketbase/pocketbase:< 0.22.48
  • go/github.com/pocketbase/pocketbase:>= 0.23.0, < 0.39.7

🔗 References (8)