CVE-2025-51487: Cross-site Scripting
Source CVE Database V5
Not known to be exploited · CVSS 4.5 Medium · fixed in 3.12.5 : update affected systems when convenient.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.12.5
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
1. Immediate upgrade to MoonShine version 3.12.5 or later, where the vulnerability is fixed, is the most effective mitigation. 2. If upgrading is not immediately feasible, implement strict input validation and sanitization on the CutCode Link parameter to disallow any non-HTTPS protocols, explicitly blocking "javascript:" and other potentially dangerous schemes. 3. Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and limit the sources of executable scripts to trusted domains only. 4. Conduct a thorough audit of existing articles to identify and remove any malicious or suspicious CutCode Link entries. 5. Restrict article creation and update permissions to trusted users only, minimizing the risk of privilege abuse. 6. Educate content managers about the risks of injecting untrusted links or code. 7. Monitor application logs and user activity for unusual behavior indicative of exploitation attempts. 8. Implement web application firewall (WAF) rules to detect and block attempts to inject "javascript:" payloads in article parameters.
Description
A Stored Cross-Site Scripting (XSS) vulnerability exists in MoonShine version < 3.12.5, allowing to execute arbitrary JavaScript by using "javascript:" payload, instead of the expected HTTPS protocol, in the CutCode Link parameter when creating/updating a new Article.