CVE-2024-5478
CVE-2024-5478 is a medium-severity vulnerability in Lunary with a CVSS 3.x base score of 6.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Medium (CVSS 3.x base score 6.1)
- EPSS exploit prediction: 0% (27th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-2161
- Weakness: CWE-79
- Affected product: Lunary
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-5478?
- 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.
- How severe is CVE-2024-5478?
- CVE-2024-5478 has a CVSS 3.x base score of 6.1, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2024-5478 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (27th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-5478?
- CVE-2024-5478 affects Lunary. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-5478?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-5478 have an EU (EUVD) identifier?
- Yes. CVE-2024-5478 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2161.
- When was CVE-2024-5478 published?
- CVE-2024-5478 was published on 2024-06-06 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:lunary:lunary:1.2.7:*:*:*:*:*:*:*
More vulnerabilities in Lunary
- CVE-2024-9095 — Critical (CVSS 9.8): In lunary-ai/lunary version v1.4.28, the /bigquery API route lacks proper access control, allowing any logged-in user…
- CVE-2024-7456 — Critical (CVSS 9.8): A SQL injection vulnerability exists in the `/api/v1/external-users` route of lunary-ai/lunary version v1.4.2. The…
- CVE-2024-4146 — Critical (CVSS 9.8): In lunary-ai/lunary version v1.2.13, an incorrect authorization vulnerability exists that allows unauthorized users to…
- CVE-2025-5352 — Critical (CVSS 9.6): A critical stored Cross-Site Scripting (XSS) vulnerability exists in the Analytics component of lunary-ai/lunary…
- CVE-2024-5328 — Critical (CVSS 9.3): A Server-Side Request Forgery (SSRF) vulnerability exists in the lunary-ai/lunary application, specifically within the…
- CVE-2024-7475 — Critical (CVSS 9.1): An improper access control vulnerability in lunary-ai/lunary version 1.3.2 allows an attacker to update the SAML…
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →