Repository navigation
fix(deps): update dependency @payloadcms/storage-s3 to v3.90.0 [security] - #156
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.88.0→3.90.0Payload: Client uploads could overwrite S3 objects
CVE-2026-105867 / GHSA-7vg8-29qx-jgj8
More information
Details
Impact
An authenticated user could overwrite an existing S3 object belonging to another upload collection, bypassing that collection’s access controls and prior file validation.
You are affected if ALL of these are true:
false.Patches
Users should upgrade Payload packages to
>= 3.90.0or>= 4.0.0-canary.34.Workarounds
Disable client uploads until you can upgrade.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
payloadcms/payload (@payloadcms/storage-s3)
v3.90.0Compare Source
These notes only cover the behavior, configuration, and API-surface changes that projects may need to react to when upgrading. Exploit details, attack surface descriptions, and severity are intentionally omitted.
CVE and GHSA identifiers for the underlying issues are published separately.
How to read this document
Every entry has: Affected if you (concrete conditions - if none apply, no action is required), and Action required.
After upgrading:
pnpm payload generate:typesPassword changes now revoke other sessions
Password reset now clears lockouts; forgot-password is throttled
Adds new
resetPasswordRequestedAtfield to user collectionsAction required:
pnpm payload generate:typesScheduled publishing preserves the scheduling user's auth collection
Affected if you:
schedulePublishjobs directly or depend on its generated task types.Action required:
user: { relationTo, value }(value is user ID).Stricter validation for SVG and XML uploads
Affected if you:
Action required:
allowRestrictedFileTypes: truein the collectionsuploadproperty if the previous behavior is explicitly required.Client uploads hardened across all adapters
Affected if you:
clientUploads: true(S3, GCS, Azure, or custom).Action required:
x-goog-if-generation-matchheader to GCS CORS allowed headers.Azure containers default to private
Affected if you:
@payloadcms/storage-azureadapter withallowContainerCreate: trueAction required:
containerAccess: 'blob'in your Azure storage config.Client uploads are stored in a per-upload folder
Affected if you:
clientUploadswith a storage adapter and access stored files outside Payload (for example, by building paths fromprefixandfilename)prefixvalues outside the adapter's collectionprefixWhat changed:
<prefix>/<_objectKey>/<filename>, including generated image sizes._objectKeyis a new field on upload collections. Existing files are not moved.user-123with collection prefixmediais stored undermedia/user-123/.Action required:
_objectKey(when set) between the prefix and filename when building storage paths outside Payload._objectKeycolumn.disablePayloadAccessControlno longer disables safe outbound fetchAffected if you:
disableAccessControl: truein your Payload config.Action required:
upload.skipSafeFetchallowlist for trusted destinationsskipSafeFetch: trueonly when every URL accepted by the collection is trusted.External file fetches require a trusted origin
Affected if you:
upload.disableLocalStorage: trueand rely on Payload fetching relative URLs whose endpoint requires a Payload session cookie.externalFileHeaderFilter, particularly if it assumes it runs only once.Action required:
serverURLor add the exact application origin to your CORS or CSRF configuration.externalFileHeaderFilterand use the optional context when headers need to vary by destination.upload: { externalFileHeaderFilter: (headers, context) => { + if (!context?.isSameOrigin) { + delete headers.cookie + delete headers.authorization + } + return headers }, }Uploaded filename hardening
Affected if you:
Action required:
Multipart uploads are now capped at 50MB by default
Affected if you:
Action required:
requestSizeLimitin your Payload config:upload { + requestSizeLimit: 75 * 1024 * 1024, // Example 75 MiB for the complete multipart request }Form Builder defaults form submission read access to the admin collection
Affected if you:
Action required:
Stricter
wherevalidation for polymorphic joinsPolymorphic joins now apply complete
whereconstraints and throw aQueryErrorwhen a filter is unsupported.Unsupported filters include:
owner.email.near,within,intersects, andalloperators.Affected if you:
collectionreferences multiple collections, andwhereconstraint.baseFilterorbaseListFilterused by folder browsing.Action required:
whereconstraints and read access rules for every collection referenced by a polymorphic join.API keys are no longer readable after initial generation through UI or within Payload operations
If you wish to retain old behavior, set the following in your config:
auth: { - useAPIKey: true, + useAPIKey: { + reveal: true, + }, }Lexical version bump
Full Details
No application changes or data migration are needed when using Payload's built-in rich text features.
If you maintain custom rich text features, check that they still compile and that custom content loads, copies, and pastes correctly. Lexical removed some older APIs, tightened TypeScript types, and changed how custom nodes are loaded and copied. Tests that inspect the editor's HTML may also need updated selectors or snapshots because Lexical adds some internal markup.
Do not install lexical or @lexical/* yourself for use with Payload. Remove any direct dependencies you added for the editor and use Payload's re-exports from
@payloadcms/richtext-lexical/lexicaland@payloadcms/richtext-lexical/lexical/*. Payload supplies the matching versions; mixing versions can break the editor. This is the existing custom feature requirement.v3.89.0Compare Source
🚀 Features
🐛 Bug Fixes
🛠 Refactors
📚 Documentation
improve access defaults for jobs (#17867) (4379bf0)
This backports the v4 jobs access changes to Payload v3.
🤝 Contributors
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.