# CVE-2025-5352: Environment Variable XSS in Analytics Component in lunary-ai/lunary

- Severity: High 8.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-23T06:56:09.029Z
- Modified: 2026-06-17T09:47:44.773Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.9.25
- lunary lunary: before 1.9.25

## Every score

- @huntr_ai: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/f1d3dbce-3c3e-480e-b81e-0e8afa05c491> (exploit, patch, third-party-advisory)
- <https://github.com/lunary-ai/lunary/commit/e2e43e88cecf742bacb639ab880507bbfdfd065c> (patch)

## Sources

- CVE List: [CVE-2025-5352](https://www.cve.org/CVERecord?id=CVE-2025-5352), CVE Terms of Use, modified 2025-08-25
- NVD: [CVE-2025-5352](https://nvd.nist.gov/vuln/detail/CVE-2025-5352), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-5352 · Whole record: https://cve.day/CVE-2025-5352.json · Rebuilt by cve.day 2026-11-25T22:59:03.603Z
