CVE-2024-5478
MEDIUM 6.1CVSS 3.1Withdrawn Advisory: lunary-ai/lunary XSS in SAML metadata endpoint
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.
- Published
- 6 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-rpx8-fg6w-rm6x
- Sources
- NVDJSONOSV GHSA-rpx8-fg6w-rm6xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lunary | lunarycpe:2.3:a:lunary:lunary:1.2.7:*:*:*:*:*:*:* |
= 1.2.7 | |
| OSV | npm | lunary | <= 1.2.7 |
References
- https://huntr.com/bounties/e899f496-d493-4c06-b596-cb0a88ad451b · Exploit, Issue Tracking, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-5478 · ADVISORY
- https://github.com/lunary-ai/lunary · PACKAGE
- https://github.com/lunary-ai/lunary/blob/main/packages/backend/src/api/v1/auth/saml.ts#L34 · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 6 Jun 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Jun 2024)