7.4
CWE
79
EPSS
0.046%
Advisory Published
Advisory Published
Updated

CVE-2024-5478: Cross-site Scripting (XSS) in SAML metadata endpoint in lunary-ai/lunary

First published: Thu Jun 06 2024(Updated: )

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.

Credit: security@huntr.dev security@huntr.dev

Affected SoftwareAffected VersionHow to fix
npm/lunary<=1.2.7
lunary lunary=1.2.7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-5478?

    CVE-2024-5478 is classified as a High severity Cross-site Scripting (XSS) vulnerability.

  • How do I fix CVE-2024-5478?

    To fix CVE-2024-5478, upgrade to version 1.2.8 or later of the lunary package.

  • What does CVE-2024-5478 affect?

    CVE-2024-5478 affects lunary version 1.2.7 and prior, specifically in the SAML metadata endpoint handling.

  • Can CVE-2024-5478 be exploited by attackers?

    Yes, CVE-2024-5478 can be exploited by attackers to execute malicious scripts in the context of the user's session.

  • What is the impact of CVE-2024-5478?

    The impact of CVE-2024-5478 includes potential theft of sensitive user information and session hijacking.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203