CWE-91Weakness · CWE-91

CVE-2026-55789

HIGH · 8.5 CVSS v3.1 Published 2026-07-10
Patch available
A vendor patch is available. No clean upgrade release — apply the published patch.
See remediation →
91/100
Remediation priority · Urgent
Remotely reachable Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Logto versions prior to 1.41.0 contain an XML injection vulnerability in the SAML IdP component. The system uses string substitution to insert user-controlled profile attributes (name, email, custom attributes) into SAML XML templates without proper escaping. An authenticated low-privilege user can inject malicious XML markup into profile attributes, which Logto then signs. This allows the attacker to forge SAML assertions containing arbitrary roles or permissions, enabling privilege escalation at relying Service Providers that authorize access based on SAML attributes.

MitigationUpgrade Logto to version 1.41.0 or later. If immediate upgrade is not possible, review and monitor SAML-enabled Service Providers for unauthorized privilege escalation attempts, and consider implementing additional authorization controls beyond SAML attributes.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check Logto installation version
    Identify the installed Logto version by inspecting the package.json file (for npm installations), Docker image tag, or the /api/.well-known/openid-configuration endpoint if the admin API is accessible. Compare the version number to the affected range (versions prior to 1.41.0).
    Affected if The installed version is Logto prior to 1.41.0
  2. Verify SAML IdP integration is enabled
    Access the Logto admin console and navigate to the SSO/SAML configuration section. Check if any SAML Service Provider connections are configured and active. Alternatively, inspect the Logto database or configuration files for SAML-related entries.
    Affected if SAML IdP integration is enabled and configured with at least one Service Provider
  3. Confirm user profile attribute modification is possible
    Log into Logto as a low-privilege user and attempt to modify profile attributes such as name, email address, or custom attributes through the user settings interface or user management API.
    Affected if User profile attributes can be modified without sanitization checks
  4. Inspect SAML assertion generation for XML escaping
    Trigger a SAML authentication flow to a configured Service Provider as a test user with modified profile attributes. Capture and inspect the generated SAML XML response (typically via SAML tracer browser extension or proxy). Look for unsanitized insertion of user-controlled data into XML elements.
    Affected if User-supplied profile data appears unescaped within the SAML XML response (e.g., <AttributeValue>user input without XML entity encoding</AttributeValue>)

You are affected if running Logto version below 1.41.0 with SAML IdP enabled and users can modify profile attributes that get embedded into SAML assertions without proper XML escaping.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Patch available Apply the vendor patch
Vendor patch github.com →
Interim mitigation

Upgrade Logto to version 1.41.0 or later. If immediate upgrade is not possible, review and monitor SAML-enabled Service Providers for unauthorized privilege escalation attempts, and consider implementing additional authorization controls beyond SAML attributes.

Recommended fix High confidence

1.41.0

  1. 1. Identify the currently running Logto self-hosted version using the admin console or CLI
  2. 2. If the current version is prior to 1.41.0, plan an upgrade to version 1.41.0 or later
  3. 3. Review the upgrade documentation at https://docs.logto.io/docs/tutorials/upgrade-logto/ for your deployment method
  4. 4. Create a backup of the current Logto database and configuration
  5. 5. Upgrade Logto to version 1.41.0 following the standard upgrade procedure for your deployment (Docker, npm, or Helm)
  6. 6. Verify the upgrade was successful by checking the version in the admin console
  7. 7. Test SAML authentication flows to confirm the fix is working correctly
  8. 8. Ensure no custom attribute mappings or user profile fields contain unescaped XML special characters (<, >, ", ')

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing8.0 h
  • Review / QA4.0 h
24.0 hours of engineering $4,160
Get the patch applied

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,656.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-55789 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-55789 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data