Withdrawn Advisory: lunary-ai/lunary XSS in SAML metadata endpoint
High severity
GitHub Reviewed
Published
Jun 6, 2024
to the GitHub Advisory Database
•
Updated Jun 20, 2025
Withdrawn
This advisory was withdrawn on Jun 20, 2025
Description
Published by the National Vulnerability Database
Jun 6, 2024
Published to the GitHub Advisory Database
Jun 6, 2024
Reviewed
Jul 19, 2024
Withdrawn
Jun 20, 2025
Last updated
Jun 20, 2025
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 theorgId
parameter supplied by the user before incorporating it into the generated response. Specifically, the endpoint generates XML responses for SAML metadata, where theorgId
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.References