Cross-site scriptingin lunary-ai lunary.
Proof of concept public (GitHub).
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.
- Upgrade lunary-ai/lunary to 1.9.25 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 30 May 2025CVE ID reserved by @huntr_ai.
- 23 Aug 2025Published in the CVE List.
- 25 Aug 2025CVE record last updated.
- 5 Dec 2025First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other lunary vulnerabilities
Same weakness: Cross-site scripting
Patchminder. CVE-2025-5352: Cross-site scripting in lunary-ai lunary. https://patchminder.com/cve/cve-2025-5352/ (accessed 5 December 2026).