CVE-2026-55789
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 · uneditedLogto 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 confidenceLogto 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Check Logto installation versionIdentify 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
-
Verify SAML IdP integration is enabledAccess 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
-
Confirm user profile attribute modification is possibleLog 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
-
Inspect SAML assertion generation for XML escapingTrigger 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.
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 · scopedUpgrade 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.
1.41.0
- 1. Identify the currently running Logto self-hosted version using the admin console or CLI
- 2. If the current version is prior to 1.41.0, plan an upgrade to version 1.41.0 or later
- 3. Review the upgrade documentation at https://docs.logto.io/docs/tutorials/upgrade-logto/ for your deployment method
- 4. Create a backup of the current Logto database and configuration
- 5. Upgrade Logto to version 1.41.0 following the standard upgrade procedure for your deployment (Docker, npm, or Helm)
- 6. Verify the upgrade was successful by checking the version in the admin console
- 7. Test SAML authentication flows to confirm the fix is working correctly
- 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.
- Consultation4.0 h
- Implementation8.0 h
- Testing8.0 h
- Review / QA4.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-55789 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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