{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.41.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9097054860f0d638d90778d3dcde2ba050b844b6"
            },
            {
              "fixed": "91e55698a42f99438cd41ec2b16a1fc51dbdab8a"
            }
          ],
          "repo": "https://github.com/logto-io/logto",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-vfpw-vq44-4p63"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1395",
      "CWE-91"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55789.json"
  },
  "details": "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.",
  "id": "CVE-2026-55789",
  "modified": "2026-08-12T03:51:29.890558122Z",
  "published": "2026-07-10T19:55:37.360Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/logto-io/logto/releases/tag/v1.41.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55789.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/logto-io/logto/security/advisories/GHSA-vfpw-vq44-4p63"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55789"
    },
    {
      "type": "FIX",
      "url": "https://github.com/logto-io/logto/commit/9097054860f0d638d90778d3dcde2ba050b844b6"
    },
    {
      "type": "FIX",
      "url": "https://github.com/logto-io/logto/pull/9107"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Logto: SAML IdP injects user-controlled profile attributes raw into signed assertions, allowing privilege escalation at relying Service Providers"
}