Intel

AIKIDO-2026-118636

@vendure/core is vulnerable to Unrestricted Upload of File with Dangerous Type

Unrestricted Upload of File with Dangerous TypeGHSA-88rq-mq4v-frmm Published Today

85

High Risk

This Affects:

JS@vendure/core
3.6.0 - 3.6.4
Fixed in 3.6.5
Are you affected? Scan for Free

TL;DR

The asset upload flow determines an uploaded file's type from the client-supplied Content-Type header instead of inspecting the actual file contents. An authenticated administrator can set an arbitrary Content-Type to bypass the permitted-file-type allowlist and store files of dangerous types, which can lead to code execution depending on how assets are served. The fix inspects file magic bytes with content-based type detection in addition to the declared MIME type.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you allow administrators to upload assets.

Background info

@vendure/core is vulnerable to Unrestricted Upload of File with Dangerous Type in versions 3.6.0 - 3.6.4.

How to fix this

Upgrade the @vendure/core library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform