A Cross-site Scripting (XSS) vulnerability exists in the SAML metadata endpoint…
Historical advisory recorded 25 Oct 2026 01:17:12 UTC. Read the latest advisory.
nvd · CVE-2024-5478
PublishedA 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2024-5478
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-79
Original publisher date fields
published: 2024-06-06T19:16:08.933
lastModified: 2026-06-17T08:16:01.747
1 source CPE criteria · context only
- cpe:2.3:a:lunary:lunary:1.2.7:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON