The vulnerability, CVE-2026-105857, describes a Remote Code Execution (RCE) issue in @payloadcms/plugin-form-builder where crafted submissions could lead to code execution. The provided patch directly addresses this by implementing stricter access controls on reading form submission data and form email configurations.
Specifically, the access.read functions within packages/plugin-form-builder/src/collections/FormSubmissions/index.ts and packages/plugin-form-builder/src/collections/Forms/index.ts were identified as vulnerable. In the unpatched versions, these functions permitted any logged-in user to read sensitive data. This broad access was problematic because, as the vulnerability description implies, form submissions and email configurations could be crafted to contain malicious code. While the actual RCE payload execution might occur in a separate processing function (not directly modified in this patch), the access.read functions were the critical entry points that allowed unauthorized users to access the data containing these RCE payloads. By restricting read access to only administrative users, the patch significantly reduces the attack surface and prevents non-privileged users from triggering the RCE by interacting with or causing the processing of malicious data.