CVE-2025-5352 Details
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.
A critical stored Cross-Site Scripting (XSS) vulnerability has been identified in the Analytics component of lunary-ai/lunary, affecting versions through 1.9.23. The vulnerability arises because the NEXT_PUBLIC_CUSTOM_SCRIPT environment variable is injected directly into the DOM using dangerouslySetInnerHTML, without any sanitization or validation. This flaw allows for the execution of arbitrary JavaScript in the browsers of all users. If an attacker can manipulate the environment variable during deployment or through a server compromise, it could lead to severe consequences, including complete account takeover, data exfiltration, malware distribution, and persistent attacks affecting all users until the environment variable is removed.
Users should update to lunary-ai/lunary version 1.9.25 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lunary-ai/lunary/commit/e2e43e88cecf742bacb639ab880507bbfdfd065c | [email protected] | Patch |
| https://huntr.com/bounties/f1d3dbce-3c3e-480e-b81e-0e8afa05c491 | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| lunary lunary | < 1.9.25 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 26, 2025 | Initial Analysis | [email protected] |
| Aug 23, 2025 | New CVE Received | [email protected] |