Unrestricted Upload of File with Dangerous Type Affecting moonshine/moonshine package, versions <3.12.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Unrestricted Upload of File with Dangerous Type vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOONSHINEMOONSHINE-12177863
  • published28 Aug 2025
  • disclosed19 Aug 2025
  • creditGiacoLenzo2109

Introduced: 19 Aug 2025

NewCVE-2025-51489  (opens in a new tab)
CWE-434  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade moonshine/moonshine to version 3.12.5 or higher.

Overview

moonshine/moonshine is a Laravel administration panel

Affected versions of this package are vulnerable to Unrestricted Upload of File with Dangerous Type via the Files -> Thumbnail parameter when creating/updating an Article. An attacker can run scripts within the context of the application by uploading a specially crafted SVG file.

References

CVSS Base Scores

version 4.0
version 3.1