CVE-2025-5352
CRITICALlunary < 1.9.25 - Stored Cross-Site Scripting via NEXT_PUBLIC_CUSTOM_SCRIPT Environment Variable
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-5352. PoCs published by sahiloj.
AI-analyzed exploit summary The repository describes a stored XSS vulnerability in lunary-ai/lunary's Analytics component, where the NEXT_PUBLIC_CUSTOM_SCRIPT variable is injected into the DOM using dangerouslySetInnerHTML without sanitization. An attacker controlling this variable can execute arbitrary JavaScript in users' browsers.
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.
Exploits (1)
The repository describes a stored XSS vulnerability in lunary-ai/lunary's Analytics component, where the NEXT_PUBLIC_CUSTOM_SCRIPT variable is injected into the DOM using dangerouslySetInnerHTML without sanitization. An attacker controlling this variable can execute arbitrary JavaScript in users' browsers.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H