CVE-2024-5478: Withdrawn Advisory: lunary-ai/lunary XSS in SAML metadata endpoint
This advisory was withdrawn on Jun 20, 2025. The publisher no longer considers it a valid vulnerability.
Withdrawn Advisory This advisory has been withdrawn because the lunary npm package is connected to https://github.com/lunary-ai/lunary-js, not the https://github.com/lunary-ai/lunary repo that is discussed in this advisory. The underlying vulnerability report is still valid, but it doesn't affect a product in a GitHub Advisory Database supported ecosystem. This link is maintained to preserve external references.
Published Jun 6, 2024 · Updated Jun 20, 2025
Affected packages
lunary
- Ecosystem
- npm
- Affected
- <= 1.2.7
- Fixed in
- No patched version yet
- Check
npm ls lunary
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Withdrawn Advisory
This advisory has been withdrawn because the lunary npm package is connected to https://github.com/lunary-ai/lunary-js, not the https://github.com/lunary-ai/lunary repo that is discussed in this advisory.
The underlying vulnerability report is still valid, but it doesn't affect a product in a GitHub Advisory Database supported ecosystem.
This link is maintained to preserve external references.
Original Description
A Cross-site Scripting (XSS) vulnerability exists in the SAML metadata endpoint /auth/saml/${org?.id}/metadata of lunary-ai/lunary version 1.2.7. The vulnerability arises due to the application's failure to escape or validate the orgId parameter supplied by the user before incorporating it into the generated response. Specifically, the endpoint generates XML responses for SAML metadata, where the orgId parameter is directly embedded into the XML structure without proper sanitization or validation. This flaw allows an attacker to inject arbitrary JavaScript code into the generated SAML metadata page, leading to potential theft of user cookies or authentication tokens.
Credited to hughcrt.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
