CVE-2026-54714
JSON

6.1medium

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

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
logto-io logto< 1.41.0CVE List

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Logto es la moderna infraestructura de autenticación de código abierto para aplicaciones SaaS y de IA. Antes de la versión 1.41.0, @logto/core reflejaba el SAML RelayState, SAMLResponse y actionUrl en un formulario HTML de autoenvío con origen Logto en packages/core/src/saml-application/SamlApplication/utils.ts sin el escape de atributos HTML. Un flujo de aplicación SAML con un RelayState manipulado desde GET o POST /API/saml/:id/authn podría inyectar un script que se ejecuta en el origen del inquilino de Logto después de que el usuario completa el inicio de sesión. Este problema está solucionado en la versión 1.41.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54714 changed 2026-07-13CVE Terms of Use
NVDCVE-2026-54714 changed 2026-10-25Public domain