{"id":"CVE-2026-39397","aliases":["CVE-2026-39397","GHSA-65w6-pf7x-5g85"],"related":[],"kind":"vulnerability","state":"published","title":"@delmaredigital/payload-puc is missing authorization on /api/puck/* CRUD endpoints allows unauthenticated access to Puck-registered collections","summary":"@delmaredigital/payload-puck is a PayloadCMS plugin for integrating Puck visual page builder. Prior to 0.6.23, all /api/puck/* CRUD endpoint handlers registered by createPuckPlugin() called Payload's local API with the default overrideAccess: true, bypassing all collection-level access control. The access option passed to createPuckPlugin() and any access rules defined on Puck-registered collections were silently ignored on these endpoints. This vulnerability is fixed in 0.6.23.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@delmaredigital/payload-puck is a PayloadCMS plugin for integrating Puck visual page builder. Prior to 0.6.23, all /api/puck/* CRUD endpoint handlers registered by createPuckPlugin() called Payload's local API with the default overrideAccess: true, bypassing all collection-level access control. The access option passed to createPuckPlugin() and any access rules defined on Puck-registered collections were silently ignored on these endpoints. This vulnerability is fixed in 0.6.23.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAll `/api/puck/*` CRUD endpoint handlers registered by `createPuckPlugin()` called Payload's local API with the default `overrideAccess: true`, bypassing all collection-level access control. The `access` option passed to `createPuckPlugin()` and any `access` rules defined on Puck-registered collections were silently ignored on these endpoints.\n\nAn unauthenticated remote attacker could:\n\n- List all documents (including drafts) in any Puck-registered collection\n- Read any document by ID (including drafts)\n- Create new documents with arbitrary field values\n- Update any document (including bypassing field-level access rules)\n- Delete any document\n- Read version history and restore arbitrary versions\n\n**In typical installations**, the affected scope is the collection backing the website's pages (default slug: `pages`). For most users this means an attacker could read, modify, create, or delete every page on the website — including unpublished drafts and version history.\n\n**Scope is limited to collections explicitly registered with `createPuckPlugin()`** — the endpoints validate the collection slug against an allowlist, so attackers cannot pivot to other Payload collections such as `users`, `media`, or business data not exposed to the plugin. The auto-created `puck-templates`, `puck-ai-prompts`, and `puck-ai-context` collections are also outside the allowlist; they have their own dedicated endpoints with separate authentication.\n\nOther endpoints in the plugin (AI, styles, prompts, context, and the Next.js API route factories in `src/api/`) were unaffected — they had their own authentication checks.\n\n### Patches\n\nFixed in **0.6.23**. All endpoint handlers in `src/endpoints/index.ts` now pass `overrideAccess: false` and forward `req` to Payload's local API, so collection-level access rules are evaluated against the current user.\n\n### Workarounds\n\nIf you cannot upgrade immediately, place a reverse-proxy or middleware authentication check in front of `/api/puck/*` to require an authenticated session before requests reach the plugin's handlers.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@delmaredigital/payload-puck es un plugin de PayloadCMS para integrar el constructor visual de páginas Puck. Antes de 0.6.23, todos los manejadores de endpoints CRUD /api/puck/* registrados por createPuckPlugin() llamaban a la API local de Payload con la opción predeterminada overrideAccess: true, saltándose todo el control de acceso a nivel de colección. La opción de acceso pasada a createPuckPlugin() y cualquier regla de acceso definida en colecciones registradas por Puck fueron ignoradas silenciosamente en estos endpoints. Esta vulnerabilidad está corregida en 0.6.23.","source":"nvd"}],"published":"2026-04-07T20:09:19.962Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":9.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":9.4,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"< 0.6.23","status":"affected"}],"vendor":"delmaredigital","product":"payload-puck","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.23"}],"ecosystem":"npm","package":"@delmaredigital/payload-puck","purl":"pkg:npm/%40delmaredigital/payload-puck","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.23"}],"vendor":"delmaredigital","product":"payload-puck","cpe":"cpe:2.3:a:delmaredigital:payload-puck:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/delmaredigital/payload-puck/security/advisories/GHSA-65w6-pf7x-5g85","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/delmaredigital/payload-puck/issues/7","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/delmaredigital/payload-puck/commit/9148201c6bbfa140d44546438027a2f8a70f79a4","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39397","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/delmaredigital/payload-puck","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-07T20:33:14.223Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39397","url":"https://www.cve.org/CVERecord?id=CVE-2026-39397","licence":"CVE Terms of Use","modified":"2026-04-07T20:33:24.005Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-65w6-pf7x-5g85","url":"https://github.com/advisories/GHSA-65w6-pf7x-5g85","licence":"CC-BY-4.0","modified":"2026-04-08T00:56:21.663Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39397","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39397","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:18.177Z","epss":{"score":0.00372,"percentile":0.33202,"date":"2026-12-02T12:00:21.000Z"}}