- Package
- awcodes/filament-curator
- Fixed in
- 5.1.2, 4.1.2, 3.7.9
- Published
- Tue 17 Nov 2026, 20:54 LisbonUpdated Sat 28 Nov 2026, 00:45 Lisbon
- Installs on Packagist
- 532K
In plain words
An authenticated user with media-upload permission can upload an SVG containing JavaScript that runs when another panel user opens the file using the View action. It runs in the application's origin and can act as the viewing user, read data their session can access, or steal cookies and tokens accessible to scripts. SVG uploads are allowed by default; panel thumbnails are not affected.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| awcodes/filament-curator | >= 5.0.0, <= 5.1.1 | 5.1.2 |
| awcodes/filament-curator | >= 4.0.0, <= 4.1.1 | 4.1.2 |
| awcodes/filament-curator | >= 3.0.0, <= 3.7.8 | 3.7.9 |
How serious is it?
Medium is a CVSS score of 4.0 to 6.9: real impact, but the attacker needs something first, such as an account, a particular setting or a user who clicks a link. If your site meets that condition, treat it as High; if not, ship the fix in your next planned release.
awcodes/filament-curator has 532K installs on Packagist, so the advisory reaches a modest number of projects, which does not make yours any safer.
Am I affected?
In composer.lock, find awcodes/filament-curator and check for versions from 5.0.0 to 5.1.1, 4.0.0 to 4.1.1, or 3.0.0 to 3.7.8, inclusive. Check whether Curator accepts image/svg+xml, which it does by default, and whether uploaded SVGs can open as standalone documents through View. Review any acceptedFileTypes(...) settings and web server or storage response protections. Fixed versions are 5.1.2, 4.1.2 and 3.7.9. After upgrading, run php artisan curator:sanitize-svgs to sanitise previously uploaded SVGs; use php artisan curator:sanitize-svgs --dry-run to preview.
Did you install awcodes/filament-curator, or did a dependency?
Composer says why a package is in your project:
composer why awcodes/filament-curator
If the output names your own project, you required awcodes/filament-curator directly and the update is yours to make. If it names another package, awcodes/filament-curator came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:
composer why-not awcodes/filament-curator 5.1.2
Every line it prints is a constraint that blocks 5.1.2. Update the package it names, or raise your own constraint, and run it again until it prints nothing. If you stay on an older branch, ask about its fix instead: 4.1.2, 3.7.9.
What to do
Check which version you have, then update to a fixed release for your branch (5.1.2, 4.1.2, 3.7.9):
composer show awcodes/filament-curator | grep versions
composer update awcodes/filament-curator
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
If you cannot upgrade immediately, remove image/svg+xml from accepted file types via acceptedFileTypes(...) on the Curator field/plugin, or configure web server or storage responses to serve stored SVGs with Content-Disposition: attachment or a Content-Security-Policy that blocks inline script.
Check the whole project at once
Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:
composer audit --locked
--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.
Under the Cyber Resilience Act
No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.
Either way, if awcodes/filament-curator ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated awcodes/filament-curator, and why, is the evidence you will want later.
What goes in each Article 14 report · Does the CRA apply to your product?
awcodes/filament-curator's record
This is one of 2 advisories for awcodes/filament-curator in the digest, the first published on 17 November 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.
Other advisories for awcodes/filament-curator
- CVE-2026-63389 · 17 Nov 2026 · Medium · fixed in 5.1.1, 4.1.1, 3.7.8 Filament Curator: Cross-tenant media metadata disclosure via Curator picker search
The advisory's description
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
-
As a user who can upload media, upload an SVG file containing:
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)"> <rect width="100" height="100" fill="#fff"/> </svg> -
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.
Weakness: CWE-79 Improper Neutralization of Input During Web Page Generation; CWE-284 Improper Access Control. Reported by afa114.
CWE-79. Cross-site scripting: text an attacker controls reaches a page as markup, so their script runs in another user's browser with that user's session.
CWE-284. Improper access control: an action or a record is reachable by users who should not have it.
The advisory
- GitHub Advisory Database: GHSA-8vm9-f75m-5h2m, with who is affected and how
- OSV.dev: GHSA-8vm9-f75m-5h2m
- All advisories for awcodes/filament-curator