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

Published Jul 10, 2026
·
Updated

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.

Affected Software

1 affected component
Logto @logto/core<1.41.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @logto/core to a version that resolves this vulnerability.

    Fixed in 1.41.0

Event History

Jul 10, 2026
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-54714?

CVE-2026-54714 has a medium severity score of 6.1.

2

What type of vulnerability is CVE-2026-54714?

CVE-2026-54714 is an XSS vulnerability caused by unescaped RelayState in SAML auto-submit forms.

3

How can I mitigate CVE-2026-54714?

To mitigate CVE-2026-54714, upgrade to Logto version 1.41.0 or later where the vulnerability has been fixed.

4

What software is affected by CVE-2026-54714?

CVE-2026-54714 affects Logto @logto/core prior to version 1.41.0.

5

What impact does CVE-2026-54714 have?

Exploitation of CVE-2026-54714 can lead to cross-site scripting attacks, allowing an attacker to execute malicious scripts in the user's browser.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203