{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.41.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "209fa0a5cbe8522f9cf31873239dc6424099bb5e"
            },
            {
              "fixed": "91e55698a42f99438cd41ec2b16a1fc51dbdab8a"
            }
          ],
          "repo": "https://github.com/logto-io/logto",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-cpm5-w86q-w85f"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54714.json"
  },
  "details": "Logto is the modern, open-source auth infrastructure for SaaS and AI apps. Prior to 1.41.0, @logto/core reflected the SAML RelayState, SAMLResponse, and actionUrl into a Logto-origin auto-submit HTML form in packages/core/src/saml-application/SamlApplication/utils.ts without HTML-attribute escaping. A SAML application flow with a crafted RelayState from GET or POST /api/saml/:id/authn could inject script that runs on the Logto tenant origin after the user completes login. This issue is fixed in version 1.41.0.",
  "id": "CVE-2026-54714",
  "modified": "2026-08-12T03:51:43.978875024Z",
  "published": "2026-07-10T19:54:28.526Z",
  "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/54xxx/CVE-2026-54714.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/logto-io/logto/security/advisories/GHSA-cpm5-w86q-w85f"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54714"
    },
    {
      "type": "FIX",
      "url": "https://github.com/logto-io/logto/commit/209fa0a5cbe8522f9cf31873239dc6424099bb5e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/logto-io/logto/pull/9008"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Logto: XSS via unescaped RelayState in SAML auto-submit form"
}