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

Mon, 25 Aug 2025 21:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 24 Aug 2025 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Lunary-ai
Lunary-ai lunary
Vendors & Products Lunary-ai
Lunary-ai lunary

Sat, 23 Aug 2025 07:15:00 +0000

Type Values Removed Values Added
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.
Title Environment Variable XSS in Analytics Component in lunary-ai/lunary
Weaknesses CWE-79
References
Metrics cvssV3_0

{'score': 8.1, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published: 2025-08-23T06:56:09.029Z

Updated: 2025-08-25T18:15:34.006Z

Reserved: 2025-05-30T08:23:15.862Z

Link: CVE-2025-5352

cve-icon Vulnrichment

Updated: 2025-08-25T18:15:21.845Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-08-23T07:15:32.300

Modified: 2025-08-25T20:24:45.327

Link: CVE-2025-5352

cve-icon Redhat

No data.