GHSA-gxxh-8vcj-w2mh: Mckenziearts/livewire markdown editor Cross-Site Scripting Vulnerability

HIGH
CVSS 7.1
CWE-434 CWE-79
Published
Advisory Summary

GHSA-gxxh-8vcj-w2mh is a HIGH (CVSS 7.1) cross-site scripting vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Mckenziearts/livewire markdown editor libraries in the Packagist ecosystem. The issue involves livewire-markdown-editor has arbitrary file upload that allows stored xss via attachment handler. Remediation is available by upgrading affected packages to version 1.3.

GHSA-gxxh-8vcj-w2mh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gxxh-8vcj-w2mh
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Mckenziearts/livewire markdown editor
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-gxxh-8vcj-w2mh

To remediate this vulnerability, upgrade all affected Mckenziearts/livewire markdown editor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mckenziearts/livewire-markdown-editor fixed: 1.3
Upgrade mckenziearts/livewire-markdown-editor to 1.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mckenziearts/livewire-markdown-editor

How to Check if You Are Affected

To determine whether your application is affected by GHSA-gxxh-8vcj-w2mh, inspect your project dependencies for Mckenziearts/livewire markdown editor:

inspect dependencies for mckenziearts/livewire-markdown-editor

Analyze the terminal output to locate any version of Mckenziearts/livewire markdown editor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Mckenziearts/livewire markdown editor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 `.html` or `.svg` files - **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"`: ```blade <livewire:markdown-editor wire:model="content" :show-upload="false" /> ``` This hides the file input and prevents the vulnerable code path from being reached. ### Resources - Patch commit: https://github.com/mckenziearts/livewire-markdown-editor/pull/12 - Release: https://github.com/mckenziearts/livewire-markdown-editor/releases/tag/v1.3 - CWE-434: https://cwe.mitre.org/data/definitions/434.html - CWE-79: https://cwe.mitre.org/data/definitions/79.html

GHSA-gxxh-8vcj-w2mh Affected Mckenziearts/livewire markdown editor Versions

1 component(s)
Fixed Versions:
1.3
Product / Package Ecosystem Affected Versions Fixed Version
mckenziearts/livewire-markdown-editor
Packagist
< 1.3
1.3

References

Frequently Asked Questions

What is GHSA-gxxh-8vcj-w2mh?
GHSA-gxxh-8vcj-w2mh is a security vulnerability in Mckenziearts/livewire markdown editor involving livewire-markdown-editor has arbitrary file upload that allows stored XSS via attachment handler under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Mckenziearts/livewire markdown editor versions are affected?
Affected versions include releases prior to 1.3 across affected packages: mckenziearts/livewire-markdown-editor.
What version fixes GHSA-gxxh-8vcj-w2mh?
Upgrading to 1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mckenziearts/livewire-markdown-editor affected?
Yes, mckenziearts/livewire-markdown-editor is affected in releases prior to 1.3. Upgrade your dependency to 1.3 or later.
What is the CVSS score of GHSA-gxxh-8vcj-w2mh?
GHSA-gxxh-8vcj-w2mh has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with GHSA-gxxh-8vcj-w2mh?
GHSA-gxxh-8vcj-w2mh is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Packagist dependencies for GHSA-gxxh-8vcj-w2mh?
Run the dependency tree command: 'inspect dependencies for mckenziearts/livewire-markdown-editor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gxxh-8vcj-w2mh",
  "modified" : "2026-05-04T22:11:05Z",
  "published" : "2026-05-04T22:11:05Z",
  "aliases" : [ ],
  "summary" : "livewire-markdown-editor has arbitrary file upload that allows stored XSS via attachment handler",
  "details" : "### Impact\nAll 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.\n\nAny 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.\n\nThe consequences include:\n\n- **Stored XSS** on the storage domain via uploaded `.html` or `.svg` files\n- **Phishing page hosting** on the application's own storage domain (trust laundering)\n- **Malware distribution** from a domain users associate with the application\n- **Markdown injection** in the editor output via crafted filenames (the client-supplied `getClientOriginalName()` value was inserted verbatim into the markdown)\n\nA real-world exploitation of this vulnerability was observed in production on a community platform using this package.\n\n### Patches\n\nUpgrade to **v1.3** or later.\n\n### Workarounds\n\nIf developers cannot upgrade immediately, disable the upload UI on every instance of the editor by passing `:show-upload=\"false\"`:\n\n```blade\n  <livewire:markdown-editor wire:model=\"content\" :show-upload=\"false\" />\n```\n\nThis hides the file input and prevents the vulnerable code path from being reached.\n\n### Resources\n\n- Patch commit: https://github.com/mckenziearts/livewire-markdown-editor/pull/12\n- Release: https://github.com/mckenziearts/livewire-markdown-editor/releases/tag/v1.3\n- CWE-434: https://cwe.mitre.org/data/definitions/434.html\n- CWE-79: https://cwe.mitre.org/data/definitions/79.html",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mckenziearts/livewire-markdown-editor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mckenziearts/livewire-markdown-editor/security/advisories/GHSA-gxxh-8vcj-w2mh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mckenziearts/livewire-markdown-editor/commit/1e60eaa5781e89704e112425f832774be85cd71f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mckenziearts/livewire-markdown-editor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mckenziearts/livewire-markdown-editor/releases/tag/v1.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434", "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-04T22:11:05Z",
    "nvd_published_at" : null
  }
}