CVE-2025-5352

Environment Variable XSS in Analytics Component in lunary-ai/lunary

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.

Category

8.1
CVSS
Severity: High
CVSS 3.0 •
EPSS 0.08%
Affected: lunary-ai lunary-ai/lunary
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-5352?
CVE-2025-5352 has been scored as a high severity vulnerability.
How to fix CVE-2025-5352?
To fix CVE-2025-5352, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-5352 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-5352 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-5352?
CVE-2025-5352 affects lunary-ai lunary-ai/lunary.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.