Logto
Logto: SAML IdP injects user-controlled profile attributes raw into signed assertions, allowing privilege escalation at relying Service Providers
Logto is the modern, open-source auth infrastructure for SaaS and AI apps. Prior to 1.41.0, Logto's self-hosted SAML application IdP built the signed SAML response and assertion by string-substituting user-controlled profile attributes such as name, email, and custom attribute-mapping values into element-text placeholders of a SAML XML template using samlify 2.10.0, which left those placeholders unescaped. An authenticated low-privilege user could place XML markup in a profile attribute so Logto signed a forged SAML attribute, such as an arbitrary role, allowing privilege escalation at relying Service Providers that authorize on SAML attributes. This issue is fixed in version 1.41.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.41.0
Fixed in 1.41.0
Mitigation
Upgrade logto to 1.41.0 or later.
References
- Vendor advisory github.com/logto-io/logto/security/advisories/…
- Patch github.com/logto-io/logto/pull/9107
- Patch github.com/logto-io/logto/commit/9097054860f0d…
1 more
- Release notes github.com/logto-io/logto/releases/tag/v1.41.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.