Skip to main content
← All vulnerabilities
CVE-2025-5352

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.9.25
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • lunary-ai lunary-ai/lunary

    fixed in 1.9.25

References 3

huntr.com

GitHub · lunary-ai/lunary

GitHub · sahiloj/CVE-2025-5352