CVE-2025-5352: A critical stored Cross-Site Scripting (XSS) vulnerability exists in the Analytics component of lunary-ai/luna
CVE-2025-5352 is a critical-severity flaw (CVSS 9.6) affecting lunary. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.6 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.5% (top 58%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2025-08-23 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-5352?
lunary: upgrade to 1.9.25. Exact commands for each OS are on this page.
Is CVE-2025-5352 being exploited?
CVE-2025-5352 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-5352 affect?
CVE-2025-5352 affects lunary. Severity is critical (CVSS 9.6). 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 dangero
How urgent is CVE-2025-5352?
Priority 49/100. Critical severity; Public exploit reference
Related CVEs
- CVE-2025-9803 HIGH 8.8 DOWNGRADE lunary-ai/lunary version 1.9.34 is vulnerable to an account takeover due to improper authentication in the Goo
- CVE-2025-4779 MEDIUM 6.1 UPGRADE lunary-ai/lunary versions prior to 1.9.24 are vulnerable to stored cross-site scripting (XSS)
- CVE-2025-0281 MEDIUM 5.4 UPGRADE A stored cross-site scripting (XSS) vulnerability exists in lunary-ai/lunary versions 1.6.7 and earlier
- CVE-2024-9099 HIGH 8.1 DOWNGRADE In lunary-ai/lunary version v1.4.29, the GET /projects API endpoint exposes both public and private API keys f
- CVE-2024-9098 MEDIUM 6.1 UPGRADE In lunary-ai/lunary before version 1.4.30, a privilege escalation vulnerability exists where admins can invite