GHSA-wcp8-7jf4-h5fhMediumCVSS 4.9
Logto through 1.46.0 contains an SQL injection vulnerability in findUserByIdentity and...
🔗 CVE IDs covered (1)
📋 Description
Logto through 1.46.0 contains an SQL injection vulnerability in findUserByIdentity and hasUserWithIdentity that allows Management API callers to inject SQL via a single quote in the social identity target. Attackers can supply a crafted target in PUT /api/users/:userId/identities/:target or a connector's metadata.target to perform blind extraction of data such as user password digests.
🔗 References (7)
- https://nvd.nist.gov/vuln/detail/CVE-2026-144596
- https://github.com/logto-io/logto/commit/4885ab76a96899c3d104841c259e4cf46ce8d48b
- https://github.com/logto-io/logto/blob/v1.46.0/packages/core/src/queries/user.ts#L177-L186
- https://github.com/logto-io/logto/blob/v1.46.0/packages/core/src/queries/user.ts#L299-L307
- https://github.com/logto-io/logto/blob/v1.46.0/packages/core/src/routes/admin-user/social.ts#L32-L54
- https://www.vulncheck.com/advisories/logto-through-1.46.0-sql-injection-via-social-identity-target
- https://github.com/advisories/GHSA-wcp8-7jf4-h5fh