Arbitrary File Upload Affecting @payloadcms/storage-s3 package, versions <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Upload vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PAYLOADCMSSTORAGES3-20570543
  • published8 Oct 2026
  • disclosed7 Oct 2026
  • creditUnknown

Introduced: 7 Oct 2026

NewCVE-2026-105868  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade @payloadcms/storage-s3 to version 3.90.0, 4.0.0-canary.34 or higher.

Overview

@payloadcms/storage-s3 is a Payload storage adapter for Amazon S3

Affected versions of this package are vulnerable to Arbitrary File Upload via insufficient validation of upload identity and MIME type in the upload handling pipeline, specifically in generateFileData and related file-type detection logic. An authenticated attacker can upload a file with a manipulated MIME type or filename that misrepresents its true content type - for example, delivering XML or SVG content under a non-XML MIME type - causing the server to serve the file without the appropriate Content-Security-Policy restrictions. This allows the attacker to execute scripts in the context of a victim user's browser when the file is subsequently accessed.

CVSS Base Scores

version 4.0
version 3.1