Media

Filament Curator: Stored XSS via unsanitized SVG upload served inline

  • Publicada: 17.11.2026
  • Actualizado: 17.11.2026 22:17

Summary

SVG files uploaded through the Curator media panel are stored and served inline without any sanitization. An authenticated user with permission to upload media can upload an SVG containing embedded JavaScript. When another panel user opens that file via the View action (which opens the media as a top-level browser document), the embedded script executes in the origin of the Filament application.

image/svg+xml is included in the default accepted MIME types, so a default installation is affected unless SVG uploads have been explicitly disabled.

Impact

Because the SVG is served as a top-level document (not embedded in an <img> tag), any <script>, event-handler attribute (e.g. onload), or javascript: URI inside it runs with full script privileges in the application's origin. In a Filament admin context this can be leveraged to:

  • perform actions as the viewing user (typically a privileged administrator) via authenticated same-origin requests,
  • read same-origin data the victim's session can access,
  • exfiltrate cookies/tokens not protected from script access.

The primary escalation path is a lower-privileged content author planting a payload that is later triggered when a higher-privileged user clicks View on the file. Panel thumbnails are not affected — they render through an <img> tag, which does not execute SVG script.

Proof of concept

  1. As a user who can upload media, upload an SVG file containing:

    xml
    <svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)">
      <rect width="100" height="100" fill="#fff"/>
    </svg>
  2. In the Curator panel, click the View (eye) action for the uploaded file. The file opens as a standalone document and the script executes in the application origin.

Patches

The fix sanitizes SVG markup at the upload choke point (Uploader), stripping scripts, event handlers, and remote references before the file is written to storage. Sanitizing at the source closes every serving path (the direct storage URL and the on-the-fly Glide/MediaController fallback) without changing the default accepted MIME types. Sanitization fails closed: if the markup cannot be parsed it is not stored.

A console command is included to re-sanitize SVG files already stored on disk from earlier uploads:

php artisan curator:sanitize-svgs # sanitize in place php artisan curator:sanitize-svgs --dry-run # preview only

After upgrading to a patched release, run curator:sanitize-svgs to clean any SVGs uploaded before the patch.

Workarounds

If you cannot upgrade immediately, either of the following mitigates the issue:

  • Disallow SVG uploads — remove image/svg+xml from the accepted file types (e.g. via acceptedFileTypes(...) on the Curator field/plugin), or
  • Serve untrusted SVGs safely — configure your web server / storage responses to send stored SVGs with Content-Disposition: attachment (or a Content-Security-Policy that blocks inline script) so they cannot execute as a top-level document.

Credit

Reported via coordinated disclosure by Afsana Alijabarova.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer awcodes/filament-curator >= 5.0.0, < 5.1.2, >= 4.0.0, < 4.1.2, >= 3.0.0, < 3.7.9 5.1.2, 4.1.2, 3.7.9

Referencias

Puntuación CVSS 5.4/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Debilidad (CWE)
CWE-284, CWE-79
Plataforma
Composer
Paquete
awcodes/filament-curator
Publicada
17.11.2026
Actualizado
17.11.2026 22:17

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-8vm9-f75m-5h2m - CC BY 4.0

Historial de vulnerabilidades: awcodes/filament-curator

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
2
Primera → última
11.2026 11.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Media 2

Divulgaciones por año

  1. 2026: 2
  1. Filament Curator: Stored XSS via unsanitized SVG upload served inline esta entrada
    Media · 5.4 CVE-2026-69241 >= 5.0.0, < 5.1.2, >= 4.0.0, < 4.1.2, >= 3.0.0, < 3.7.9 5.1.2, 4.1.2, 3.7.9
  2. Media · 5.0 CVE-2026-63389 >= 5.0.0, < 5.1.1, >= 4.0.0, < 4.1.1, >= 3.2.4, < 3.7.8 5.1.1, 4.1.1, 3.7.8

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.