CVE-2025-51489 MoonShine Arbitrary File Upload Vulnerability

Medium 4.5 Published Updated

Remote attackers can execute arbitrary JavaScript via malicious SVG uploads in MoonShine, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-51489?

CVE-2025-51489 is a medium-severity cross-site scripting vulnerability in n/a, published on 19 Aug 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

A Stored Cross-Site Scripting (XSS) vulnerability exists in MoonShine version < 3.12.5, allowing remote attackers to upload a malicious SVG file when creating/updating an Article and correctly execute arbitrary JavaScript when the file link is opened.

Weakness: CWE-79, CWE-434

Which versions are affected by CVE-2025-51489?

2 open source packages ship an affected version, including moonshine/moonshine. It affects 1 product.

PackageAffectedFixed in
moonshine/moonshine PackagistAll versions3.12.5
moonshine/moonshine PackagistAll versions3.12.5

Products include Moonshine Moonshine.

How do I fix CVE-2025-51489?

Upgrade moonshine/moonshine to 3.12.5 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-51489 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51489 exists.

Sources

Also known as GHSA-8xfq-7f6m-mpmf.

Is CVE-2025-51489 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free