Vulnerability Description
A critical stored Cross-Site Scripting (XSS) vulnerability exists in the Analytics component of lunary-ai/lunary versions up to 1.9.23, where the NEXT_PUBLIC_CUSTOM_SCRIPT environment variable is directly injected into the DOM using dangerouslySetInnerHTML without any sanitization or validation. This allows arbitrary JavaScript execution in all users' browsers if an attacker can control the environment variable during deployment or through server compromise. The vulnerability can lead to complete account takeover, data exfiltration, malware distribution, and persistent attacks affecting all users until the environment variable is cleaned. The issue is fixed in version 1.9.25.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Lunary | Lunary | < 1.9.25 |
Related Weaknesses (CWE)
References
- https://github.com/lunary-ai/lunary/commit/e2e43e88cecf742bacb639ab880507bbfdfd0Patch
- https://huntr.com/bounties/f1d3dbce-3c3e-480e-b81e-0e8afa05c491ExploitPatchThird Party Advisory
FAQ
What is CVE-2025-5352?
CVE-2025-5352 is a vulnerability with a CVSS score of 9.6 (CRITICAL). A critical stored Cross-Site Scripting (XSS) vulnerability exists in the Analytics component of lunary-ai/lunary versions up to 1.9.23, where the NEXT_PUBLIC_CUSTOM_SCRIPT environment variable is dire...
How severe is CVE-2025-5352?
CVE-2025-5352 has been rated CRITICAL with a CVSS base score of 9.6/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2025-5352?
Check the references section above for vendor advisories and patch information. Affected products include: Lunary Lunary.