Filament Curator: Stored XSS via unsanitized SVG upload served inline
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| awcodesfilament-curator | — | Not listed |
| Packagistawcodes/filament-curator |
≥ 3.0.0, < 3.7.9→ 3.7.9 |
3.7.9 |
| composerawcodes/filament-curator |
< 3.7.9→ 3.7.9 |
3.7.9 |
Original description The description as published by the source.
Filament Curator is a media picker plugin for Filament panels. From 3.0.0 until 3.7.9, 4.1.2, and 5.1.2, the Curator media panel accepts image/svg+xml files by default and stores and serves their markup inline without sanitization. An authenticated user with media-upload permission can store an SVG containing scripts, event-handler attributes, or javascript: URIs. When another panel user selects the View action, the SVG opens as a top-level browser document and its active content executes in the Filament application's origin. The script can perform authenticated same-origin actions as the viewing user and read same-origin data and script-accessible tokens. Panel thumbnails are not affected because they render through an image element that does not execute SVG script. This issue is fixed in versions 3.7.9, 4.1.2, and 5.1.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web github.com
- web github.com