llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · awcodes/filament-curator

GHSA-8VM9-F75M-5H2M

Filament Curator: Stored XSS via unsanitized SVG upload served inline

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones3.7.9 · 4.1.2 · 5.1.2
Exposición2 dDesde la divulgación, 17 nov 2026, 3:54 p. m.
Detección26 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada +1
03:54 p. m.
04:00 p. m.
12:56 a. m.
03:54 p. m.
06:09 a. m.
08:25 p. m.
10:40 a. m.
12:56 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-8VM9-F75M-5H2M divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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
  • 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>

  1. In the Curator panel, click the View (eye) action for the uploaded file. The file opens as

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
  • Serve untrusted SVGs safely — configure your web server / storage responses to send stored

Credit

Reported via coordinated disclosure by Afsana Alijabarova https://github.com/afa114.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida
awcodes/filament-curator≥ 3.0.0 < 3.7.9
awcodes/filament-curator≥ 4.0.0 < 4.1.2
awcodes/filament-curator≥ 5.0.0 < 5.1.2
3.0.0
3.7.9
4.0.0
4.1.2
5.0.0
5.1.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistawcodes/filament-curator
Corregida 3.7.9, 4.1.2, 5.1.2 — —
Versiones corregidas3.7.94.1.25.1.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/awcodes/filament-curator/security/advisories/GHSA-8vm9-f75m-5h2m
Otrahttps://github.com/awcodes/filament-curator/commit/7613e6ef4c4d716efdb5e3c8f65aca88256df1df
Otrahttps://github.com/awcodes/filament-curator/commit/f0cf6520783aa82708cce30789835e7f48084291
Otrahttps://github.com/awcodes/filament-curator
Otrahttps://github.com/awcodes/filament-curator/releases/tag/v3.7.9
Otrahttps://github.com/awcodes/filament-curator/releases/tag/v4.1.2
Otrahttps://github.com/awcodes/filament-curator/releases/tag/v5.1.2

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.