CVE-2024-5478
published high CVSS 3.0 · 7.4Cross-site Scripting (XSS) in SAML metadata endpoint in lunary-ai/lunary
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lunary-ai | lunary-ai/lunary | unspecified through latest (affected · custom) | @huntr_ai · cna |
| lunary | lunary | 0 through 1.2.7 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
1Provider assertions
3@huntr_ai · cna
Cross-site Scripting (XSS) in SAML metadata endpoint in lunary-ai/lunary
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2b7aee0d65dd395d5e3819e056146ff3bc6c932e8de278342ec3077742d61d98
- Ingested
- 23 Sep 2026, 08:32:47 UTC
- Source record
- Official CVE record