CVE-2025-5352
CVE-2025-5352 is a critical-severity vulnerability in Lunary with a CVSS 3.x base score of 9.6. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Critical (CVSS 3.x base score 9.6)
- EPSS exploit prediction: 0% (37th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-25632
- Weakness: CWE-79
- Affected product: Lunary
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-5352?
- 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.
- How severe is CVE-2025-5352?
- CVE-2025-5352 has a CVSS 3.x base score of 9.6, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2025-5352 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (37th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-5352?
- CVE-2025-5352 affects Lunary. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-5352?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2025-5352 have an EU (EUVD) identifier?
- Yes. CVE-2025-5352 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-25632.
- When was CVE-2025-5352 published?
- CVE-2025-5352 was published on 2025-08-23 and last updated on 2026-06-17.
References
- https://github.com/lunary-ai/lunary/commit/e2e43e88cecf742bacb639ab880507bbfdfd065c
- https://huntr.com/bounties/f1d3dbce-3c3e-480e-b81e-0e8afa05c491
Affected products (1)
- cpe:2.3:a:lunary:lunary:*:*:*:*:*:*:*:*
More vulnerabilities in Lunary
- CVE-2024-9095 — Critical (CVSS 9.8): In lunary-ai/lunary version v1.4.28, the /bigquery API route lacks proper access control, allowing any logged-in user…
- CVE-2024-7456 — Critical (CVSS 9.8): A SQL injection vulnerability exists in the `/api/v1/external-users` route of lunary-ai/lunary version v1.4.2. The…
- CVE-2024-4146 — Critical (CVSS 9.8): In lunary-ai/lunary version v1.2.13, an incorrect authorization vulnerability exists that allows unauthorized users to…
- CVE-2024-5328 — Critical (CVSS 9.3): A Server-Side Request Forgery (SSRF) vulnerability exists in the lunary-ai/lunary application, specifically within the…
- CVE-2024-7475 — Critical (CVSS 9.1): An improper access control vulnerability in lunary-ai/lunary version 1.3.2 allows an attacker to update the SAML…
- CVE-2024-1739 — Critical (CVSS 9.1): lunary-ai/lunary is vulnerable to an authentication issue due to improper validation of email addresses during the…
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →