Skip to content
Heist/ feed
Back to feed
HighFix available

Pocketbase: Unhandled panic in worker goroutines

Type: advisorySources: OSV

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](https://github.com/pocketbase/pocketbase/releases/tag/v0.39.7)** _(the fix was also backported in [v0.22.48](https://github.com/pocketbase/pocketbase/releases/tag/v0.22.48) in case you are using older PocketBase < v0.23.0)_.

Products
github.com/pocketbase/pocketbase
Affected versions
Not specified
Fixed versions
0.22.48, 0.39.7
CVEs
CVE-2026-82410
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 08:46 UTC · Revision 1

Source evidence

Pocketbase: Unhandled panic in worker goroutines

core-osv · Original source

Published 17 Sept 2026, 14:58 UTC

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](https://github.com/pocketbase/pocketbase/releases/tag/v0.39.7)** _(the fix was also backported in [v0.22.48](https://github.com/pocketbase/pocketbase/releases/tag/v0.22.48) in case you are using older PocketBase < v0.23.0)_.

osv:GHSA-84vh-m24q-wjjx

github.com/pocketbase/pocketbase

Fixed versions: 0.22.48

github.com/pocketbase/pocketbase

Fixed versions: 0.39.7

Complete source record
{
  "id": "33f25d85d9d2e79dc1cf76b54bf29cbbb10f2c64d5a788b874a3a87a96397038",
  "url": "https://osv.dev/vulnerability/GHSA-84vh-m24q-wjjx",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Pocketbase: Unhandled panic in worker goroutines",
    "summary": "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](https://github.com/pocketbase/pocketbase/releases/tag/v0.39.7)** _(the fix was also backported in [v0.22.48](https://github.com/pocketbase/pocketbase/releases/tag/v0.22.48) in case you are using older PocketBase < v0.23.0)_.",
    "evidence": "osv:GHSA-84vh-m24q-wjjx",
    "products": [
      {
        "name": {
          "value": "github.com/pocketbase/pocketbase",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.22.48",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "github.com/pocketbase/pocketbase",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.39.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "GHSA-84vh-m24q-wjjx",
      "aliases": [
        "CVE-2026-82410",
        "GHSA-84vh-m24q-wjjx",
        "GO-2026-6489"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.22.48"
                }
              ]
            }
          ],
          "package": {
            "name": "github.com/pocketbase/pocketbase",
            "purl": "pkg:golang/github.com/pocketbase/pocketbase",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-84vh-m24q-wjjx/GHSA-84vh-m24q-wjjx.json"
          }
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.23.0"
                },
                {
                  "fixed": "0.39.7"
                }
              ]
            }
          ],
          "package": {
            "name": "github.com/pocketbase/pocketbase",
            "purl": "pkg:golang/github.com/pocketbase/pocketbase",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-84vh-m24q-wjjx/GHSA-84vh-m24q-wjjx.json"
          }
        }
      ],
      "modified": "2026-10-07T17:55:49.811253981Z",
      "provider": "osv",
      "references": [
        "https://github.com/pocketbase/pocketbase/security/advisories/GHSA-84vh-m24q-wjjx",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-82410",
        "https://github.com/pocketbase/pocketbase/commit/30b4184305904fae0d1b78216c4e3cc34700b220",
        "https://github.com/pocketbase/pocketbase/commit/f1618ee59b6d1c0308bb474c827a2b1f24b12a95",
        "https://github.com/pocketbase/pocketbase",
        "https://github.com/pocketbase/pocketbase/discussions/7762",
        "https://github.com/pocketbase/pocketbase/releases/tag/v0.22.48",
        "https://github.com/pocketbase/pocketbase/releases/tag/v0.39.7"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-248"
        ],
        "severity": "HIGH",
        "github_reviewed": true,
        "nvd_published_at": "2026-09-16T15:17:54Z",
        "github_reviewed_at": "2026-09-17T14:58:42Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-82410",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 97131,
  "published_at": "2026-09-17T14:58:42+00:00"
}