CVE-2025-51510 MoonShine SQL Injection Vulnerability
SQL injection in MoonShine Blog Categories allows attackers to read or modify database contents via the moonshine-tree-resource component.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-51510?
CVE-2025-51510 is a medium-severity SQL injection vulnerability in n/a, published on 19 Aug 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
MoonShine was discovered to contain a SQL injection vulnerability under the Blog -> Categories page when using the moonshine-tree-resource (version < 2.0.2) component.
Weakness: CWE-89
Which versions are affected by CVE-2025-51510?
2 open source packages ship an affected version, including moonshine/moonshine. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
moonshine/moonshine Packagist | All versions to 3.12.5 | None |
moonshine/moonshine Packagist | All versions to 3.12.5 | None |
Products include Getmoonshine Moonshine.
How do I fix CVE-2025-51510?
No fix has been published for CVE-2025-51510 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-51510 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51510 exists.
Sources
Also known as GHSA-9g9j-3w64-3cjh.