GHSA-gxxh-8vcj-w2mh livewire-markdown-editor has arbitrary file upload that allows stored XSS via attachment handler
Authenticated users can upload malicious files to achieve stored XSS or code execution due to missing validation in the Livewire markdown editor package.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-gxxh-8vcj-w2mh?
GHSA-gxxh-8vcj-w2mh is a vulnerability in mckenziearts/livewire-markdown-editor, published on 4 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Impact
All versions of mckenziearts/livewire-markdown-editor prior to v1.3 contain a critical arbitrary file upload vulnerability in the MarkdownEditor::updatedAttachments() Livewire handler. The handler calls $file->store() with no server-side validation of MIME type, extension, or file content.
Any authenticated user with access to a page embedding <livewire:markdown-editor> can upload files of any type (.html, .svg, .js, .php, .exe, etc.) to the disk configured by livewire-markdown-editor.disk. When that disk is a public cloud bucket (S3, DigitalOcean Spaces, Cloudflare R2, Scaleway Object Storage — the common configuration when FILESYSTEM_DISK points to such a disk), uploaded files are served publicly with a guessed Content-Type header.
The consequences include:
- Stored XSS on the storage domain via uploaded
.htmlor.svgfiles - Phishing page hosting on the application's own storage domain (trust laundering)
- Malware distribution from a domain users associate with the application
- Markdown injection in the editor output via crafted filenames (the client-supplied
getClientOriginalName()value was inserted verbatim into the markdown)
A real-world exploitation of this vulnerability was observed in production on a community platform using this package.
Patches
Upgrade to v1.3 or later.
Workarounds
If developers cannot upgrade immediately, disable the upload UI on every instance of the editor by passing :show-upload="false":
<livewire:markdown-editor wire:model="content" :show-upload="false" />
This hides the file input and prevents the vulnerable code path from being reached.
Resources
Which versions are affected by GHSA-gxxh-8vcj-w2mh?
2 open source packages ship an affected version, including mckenziearts/livewire-markdown-editor.
| Package | Affected | Fixed in |
|---|---|---|
mckenziearts/livewire-markdown-editor Packagist | All versions | 1.3 |
mckenziearts/livewire-markdown-editor Packagist | All versions | 1.3 |
How do I fix GHSA-gxxh-8vcj-w2mh?
Upgrade mckenziearts/livewire-markdown-editor to 1.3 or later.
Is GHSA-gxxh-8vcj-w2mh being exploited?
There is no known exploitation of GHSA-gxxh-8vcj-w2mh in the wild and no public exploit code.