# CVE-2026-54714: Logto: XSS via unescaped RelayState in SAML auto-submit form

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-07-10T19:54:28.526Z
- Modified: 2026-10-25T15:10:00.147Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Logto is the modern, open-source auth infrastructure for SaaS and AI apps. Prior to 1.41.0, @logto/core reflected the SAML RelayState, SAMLResponse, and actionUrl into a Logto-origin auto-submit HTML form in packages/core/src/saml-application/SamlApplication/utils.ts without HTML-attribute escaping. A SAML application flow with a crafted RelayState from GET or POST /api/saml/:id/authn could inject script that runs on the Logto tenant origin after the user completes login. This issue is fixed in version 1.41.0.

(As written by CVE List.)

## Affected

- logto-io logto: < 1.41.0

## References

- <https://github.com/logto-io/logto/security/advisories/GHSA-cpm5-w86q-w85f>
- <https://github.com/logto-io/logto/pull/9008>
- <https://github.com/logto-io/logto/commit/209fa0a5cbe8522f9cf31873239dc6424099bb5e>
- <https://github.com/logto-io/logto/releases/tag/v1.41.0>

## Sources

- CVE List: [CVE-2026-54714](https://www.cve.org/CVERecord?id=CVE-2026-54714), CVE Terms of Use, modified 2026-07-13
- NVD: [CVE-2026-54714](https://nvd.nist.gov/vuln/detail/CVE-2026-54714), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54714 · Whole record: https://cve.day/CVE-2026-54714.json · Rebuilt by cve.day 2026-11-25T22:59:27.672Z
