@payloadcms/storage-s3@3.86.0-internal.ac46214

Payload storage adapter for Amazon S3

  • latest version

    3.94.1

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @payloadcms/storage-s3 package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Authorization Bypass Through User-Controlled Key

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

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the S3 client-side direct upload flow in S3ClientUploadHandler.ts, where signed PUT URLs are generated without an If-None-Match: * precondition. An authenticated attacker can obtain a valid signed URL and use it to overwrite an existing S3 object, replacing another user's uploaded file without authorization.

    How to fix Authorization Bypass Through User-Controlled Key?

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

    <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34
    • H
    Arbitrary File Upload

    @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.

    How to fix Arbitrary File Upload?

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

    <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34
    • C
    Cross-site Scripting (XSS)

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

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via insufficient validation of upload file identity and XML/SVG content delivery in the uploads pipeline. An authenticated attacker can upload a file with a manipulated MIME type or filename that causes the server to serve XML-family content (including SVG) without adequate Content-Security-Policy controls or server-side type validation, enabling script execution in the context of a victim's browser when the file is viewed.

    How to fix Cross-site Scripting (XSS)?

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

    <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34