GitHub Advisory Database
GHSA-w84c-53h3-mc2g
Payload: Untrusted redirect URL parameter exploit
Details
Impact
Under certain conditions, an attacker can craft a redirect link that sends a guest user to an untrusted destination after authenticating.
Patches
Users should upgrade Payload packages to >= 3.88.0 or >= 4.0.0-canary.27.
Workarounds
Upgrading is recommended. Until then, remove user-controlled redirect values from authentication flows or restrict them to known local paths.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | payload | From 3.40.0 before 3.88.0 (fixed in 3.88.0) |
| npm | payload | From 4.0.0-canary.0 before 4.0.0-canary.27 (fixed in 4.0.0-canary.27) |
| npm | @payloadcms/next | From 3.31.0 before 3.88.0 (fixed in 3.88.0) |
| npm | @payloadcms/next | From 4.0.0-canary.0 before 4.0.0-canary.27 (fixed in 4.0.0-canary.27) |