Description
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.
Published: 2026-07-10
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Logto’s SAML Identity Provider built signed assertions by inserting user‑controlled profile attributes directly into an XML template without escaping. A low‑privilege authenticated user could place XML markup in a profile such as name or custom attributes, causing Logto to sign a forged SAML attribute—e.g., a role—to the assertion. When the relying Service Provider trusts and authorizes on such attributes, the attacker gains elevated privileges. The weakness is a form of XML Injection and improper input validation.

Affected Systems

The vulnerability affects logto‑io’s Logto product. All releases prior to 1.41.0 are vulnerable. The issue is resolved in Logto 1.41.0; upgrading to that release or later removes the flaw.

Risk and Exploitability

The CVSS score of 8.5 places the issue in the high‑severity range. EPSS is <1%, indicating a very low exploitation probability, but the flaw enables privilege escalation through crafted SAML assertions by an authenticated low‑privilege user. The likely exploitation vector is an authenticated session on the Logto IdP where the user can modify profile attributes; once the forged assertion is sent to the Service Provider, the attacker’s elevated role is accepted. Because denial of service or data exfiltration is not the primary concern, the risk centers on the damage caused by privilege escalation and the potential for cascading compromise at relying applications. This vulnerability is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on July 29, 2026 at 10:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to 1.41.0 or later to eliminate the XML injection flaw.
  • If an upgrade is not immediately possible, restrict users from editing profile attributes that map to roles by disabling custom attribute mapping or resetting user roles to a safe baseline until the patch is applied.
  • Ensure that relying Service Providers validate the signature and confirm that received SAML attributes match a predefined whitelist before granting access.

Generated by OpenCVE AI on July 29, 2026 at 10:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Logto-io
Logto-io logto
Vendors & Products Logto-io
Logto-io logto

Fri, 10 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Logto: SAML IdP injects user-controlled profile attributes raw into signed assertions, allowing privilege escalation at relying Service Providers
Weaknesses CWE-1395
CWE-91
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-13T18:16:18.449Z

Reserved: 2026-06-17T14:40:28.380Z

Link: CVE-2026-55789

cve-icon Vulnrichment

Updated: 2026-07-13T18:15:52.750Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:15:06Z

Weaknesses
  • CWE-1395

    Dependency on Vulnerable Third-Party Component

  • CWE-91

    XML Injection (aka Blind XPath Injection)