{"vuln_id":"GHSA-wj7x-58c2-5793","aliases":["CVE-2026-77369"],"description":"Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint","published_at":"2026-11-20T00:14:14Z","modified_at":"2026-11-20T00:30:07.473981Z","first_seen_at":"2026-11-21T19:15:19.309897Z","severity":"critical","severity_source":"ghsa","cvss_score":9.6,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","cwe":["CWE-639","CWE-862","CWE-863"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-wj7x-58c2-5793"},"matched_alias":null,"items":[{"id":10963,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-wj7x-58c2-5793: Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint","summary":"Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint\n\n### Summary\n\nDaptin registers a generic WebSocket endpoint, `GET /yjs/:documentName`, for real-time collaborative\ndocument editing (YJS/CRDT). Unlike its purpose-built sibling route, this generic endpoint performs\nno per-resource authorization check - it only verifies that *some* user session exists. Because the\ndocument store parses `:documentName` as `typename.referenceId.columnName` and fetches that row's\nreal column content unconditionally, any authenticated user (including a brand-new, zero-privilege,\nself-registered account) can read - and, since YJS sync is bidirectional, also write - the content\nof any `file.*`-typed column on any row of any table, including tables that are admin-only by\ndefault.\n\n### Details\n\n`InitializeYjsResources` (`server/endpoint_yjs.go`) registers two routes.\n\nThe purpose-built, correctly-secured route, registered once per `file.*`-typed column on every\ntable:\n\n```go\n// server/endpoint_yjs.go:47-113 (abridged)\npath := fmt.Sprintf(\"/live/%v/:referenceId/%v/yjs\", typename, columnInfo.ColumnName)\n...\nreturn func(ginContext *gin.Context) {\n    sessionUser := ...\n    if sessionUser == nil { ginContext.AbortWithStatus(403); return }\n    ...\n    object, _, getErr := cruds[typename].GetSingleRowByReferenceIdWithTransaction(typename, parsedId, nil, tx)\n    if getErr != nil { ginContext.AbortWithStatus(404); return }\n    ...\n    objectPermission := cruds[typename].GetRowPermission(object, tx2)\n    if !objectPermission.CanUpdate(user.UserReferenceId, user.Groups, cruds[typename].AdministratorGroupId) {\n        ginContext.AbortWithStatus(401)\n        return\n    }\n    roomName := fmt.Sprintf(\"%v%v%v%v%v\", typename, \".\", referenceId, \".\", columnInfo.ColumnName)\n    ...\n    yjsConnectionHandler(ginContext.Writer, ginContext.Request)\n}\n```\n\nThis route correctly requires a session, loads the actual row, and checks\n`objectPermission.CanUpdate(...)` for the specific requesting user before allowing the WebSocket\nupgrade.\n\nA second, generic route is registered right above it, with none of those checks:\n\n```go\n// server/endpoint_yjs.go:27-38\ndefaultRouter.GET(\"/yjs/:documentName\", func(ginContext *gin.Context) {\n    sessionUser := ginContext.Request.Context().Value(\"user\")\n    if sessionUser == nil {\n        ginContext.AbortWithStatus(403)\n        return\n    }\n    yjsConnectionHandler(ginContext.Writer, ginContext.Request)\n})\n```\n\nThe only gate here is \"is some session present\" - there is no lookup of the referenced row, no\n`GetRowPermission`, no `CanUpdate`/`CanRead` check at all. `:documentName` is taken verbatim from\nthe URL and handed straight to `yjsConnectionHandler`.\n\nThe YJS document store's content provider parses `documentName` using exactly the\n`typename.referenceId.columnName` convention the secure route builds internally as `roomName`, and\nuses it to fetch the real row from the database with no authorization check of its own:\n\n```go\n// server/yjs_doucment_provider.go:41-115 (abridged)\nydb.WithInitialContentProvider(func(doc\n\nAffected: Go:github.com/daptin/daptin\n\nFixed in: 0.12.30\n\nReferences:\nhttps://github.com/daptin/daptin/security/advisories/GHSA-wj7x-58c2-5793\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-77369\nhttps://github.com/daptin/daptin/commit/a1a3c48f88ce30632a57d3fe6a971033b23bd394\nhttps://github.com/daptin/daptin\nhttps://github.com/daptin/daptin/releases/tag/v0.12.30","url":"https://osv.dev/vulnerability/GHSA-wj7x-58c2-5793","published_at":"2026-11-20T00:14:14Z","updated_at":"2026-11-20T00:30:07.473981Z","fetched_at":"2026-11-21T19:15:55.946333Z","severity":"critical","cvss_score":9.6,"epss":0.00397,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/daptin/daptin","vuln_id":"CVE-2026-77369","vuln_ids":["CVE-2026-77369","GHSA-WJ7X-58C2-5793"],"tags":["osv","go","fix-available"],"cluster_id":2086,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10963","html":"https://vulnwatch.ve1ve2.com/item/10963"}},{"id":2331,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-wj7x-58c2-5793 / CVE-2026-77369: Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint","summary":"Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint\n\n### Summary\n\nDaptin registers a generic WebSocket endpoint, `GET /yjs/:documentName`, for real-time collaborative\ndocument editing (YJS/CRDT). Unlike its purpose-built sibling route, this generic endpoint performs\nno per-resource authorization check - it only verifies that *some* user session exists. Because the\ndocument store parses `:documentName` as `typename.referenceId.columnName` and fetches that row's\nreal column content unconditionally, any authenticated user (including a brand-new, zero-privilege,\nself-registered account) can read - and, since YJS sync is bidirectional, also write - the content\nof any `file.*`-typed column on any row of any table, including tables that are admin-only by\ndefault.\n\n### Details\n\n`InitializeYjsResources` (`server/endpoint_yjs.go`) registers two routes.\n\nThe purpose-built, correctly-secured route, registered once per `file.*`-typed column on every\ntable:\n\n```go\n// server/endpoint_yjs.go:47-113 (abridged)\npath := fmt.Sprintf(\"/live/%v/:referenceId/%v/yjs\", typename, columnInfo.ColumnName)\n...\nreturn func(ginContext *gin.Context) {\n    sessionUser := ...\n    if sessionUser == nil { ginContext.AbortWithStatus(403); return }\n    ...\n    object, _, getErr := cruds[typename].GetSingleRowByReferenceIdWithTransaction(typename, parsedId, nil, tx)\n    if getErr != nil { ginContext.AbortWithStatus(404); return }\n    ...\n    objectPermission := cruds[typename].GetRowPermission(object, tx2)\n    if !objectPermission.CanUpdate(user.UserReferenceId, user.Groups, cruds[typename].AdministratorGroupId) {\n        ginContext.AbortWithStatus(401)\n        return\n    }\n    roomName := fmt.Sprintf(\"%v%v%v%v%v\", typename, \".\", referenceId, \".\", columnInfo.ColumnName)\n    ...\n    yjsConnectionHandler(ginContext.Writer, ginContext.Request)\n}\n```\n\nThis route correctly requires a session, loads the actual row, and checks\n`objectPermission.CanUpdate(...)` for the specific requesting user before allowing the WebSocket\nupgrade.\n\nA second, generic route is registered right above it, with none of those checks:\n\n```go\n// server/endpoint_yjs.go:27-38\ndefaultRouter.GET(\"/yjs/:documentName\", func(ginContext *gin.Context) {\n    sessionUser := ginContext.Request.Context().Value(\"user\")\n    if sessionUser == nil {\n        ginContext.AbortWithStatus(403)\n        return\n    }\n    yjsConnectionHandler(ginContext.Writer, ginContext.Request)\n})\n```\n\nThe only gate here is \"is some session present\" - there is no lookup of the referenced row, no\n`GetRowPermission`, no `CanUpdate`/`CanRead` check at all. `:documentName` is taken verbatim from\nthe URL and handed straight to `yjsConnectionHandler`.\n\nThe YJS document store's content provider parses `documentName` using exactly the\n`typename.referenceId.columnName` convention the secure route builds internally as `roomName`, and\nuses it to fetch the real row from the database with no authorization check of its own:\n\n```go\n// server/yjs_doucment_provider.go:41-115 (abridged)\nydb.WithInitialContentProvider(func(doc\n\nAffected packages: go:github.com/daptin/daptin\nPatched: github.com/daptin/daptin 0.12.30","url":"https://github.com/advisories/GHSA-wj7x-58c2-5793","published_at":"2026-11-20T00:14:14Z","updated_at":"2026-11-20T00:14:15Z","fetched_at":"2026-11-21T19:15:18.416756Z","severity":"critical","cvss_score":9.6,"epss":0.00397,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/daptin/daptin","vuln_id":"CVE-2026-77369","vuln_ids":["CVE-2026-77369","GHSA-WJ7X-58C2-5793"],"tags":["ghsa","go","CWE-639","CWE-862","CWE-863"],"cluster_id":2086,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2331","html":"https://vulnwatch.ve1ve2.com/item/2331"}},{"id":9014,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77369: Daptin is a GraphQL/JSON-API headless CMS. From 0.11.4 until 0.12.30, the generic GET /yjs/:documentName WebSocket route in InitializeYjsResources requires a s…","summary":"Daptin is a GraphQL/JSON-API headless CMS. From 0.11.4 until 0.12.30, the generic GET /yjs/:documentName WebSocket route in InitializeYjsResources requires a session but does not authorize the database resource selected by a typename.referenceId.columnName room name. The YJS initial-content provider then reads the selected file.* column without CanRead or CanUpdate checks, and bidirectional synchronization allows a low-privileged authenticated user to read or modify restricted row content. Unauthenticated requests are rejected, and standalone non-canonical room names remain shared-by-name rooms. This issue is fixed in version 0.12.30.\n\nReferences:\nhttps://github.com/daptin/daptin/commit/a1a3c48f88ce30632a57d3fe6a971033b23bd394\nhttps://github.com/daptin/daptin/releases/tag/v0.12.30\nhttps://github.com/daptin/daptin/security/advisories/GHSA-wj7x-58c2-5793\nhttps://github.com/daptin/daptin/security/advisories/GHSA-wj7x-58c2-5793","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77369","published_at":"2026-11-19T17:18:59.850000Z","updated_at":"2026-11-19T19:17:33.003000Z","fetched_at":"2026-11-21T19:15:31.484671Z","severity":"critical","cvss_score":9.6,"epss":0.00397,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77369","vuln_ids":["CVE-2026-77369","GHSA-WJ7X-58C2-5793"],"tags":["CWE-639","CWE-862","CWE-863"],"cluster_id":2087,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9014","html":"https://vulnwatch.ve1ve2.com/item/9014"}}]}