@payloadcms/storage-uploadthing@4.0.0-internal.bc5cf8c

Payload storage adapter for uploadthing

  • latest version

    3.90.2

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    20 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @payloadcms/storage-uploadthing 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
    Arbitrary File Upload

    @payloadcms/storage-uploadthing is a Payload storage adapter for uploadthing

    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?

    A fix was pushed into the master branch but not yet published.

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

    @payloadcms/storage-uploadthing is a Payload storage adapter for uploadthing

    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)?

    A fix was pushed into the master branch but not yet published.

    <3.90.0>=4.0.0-canary.0