# CVE-2026-59713: Leantime OIDC login CSRF in verifyState method

Source: https://junglewise.ai/threats/cve-2026-59713-leantime-oidc-login-csrf-in-verifystate-method  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-06. Updated: 2026-07-06  
License: CC BY 4.0 with a link back

CVE-2026-59713 · Severity: high · CVSS 8.1 · Published 2026-07-06

Leantime, a project management system, contains a security flaw in how it handles OpenID Connect (OIDC) logins. An attacker can trick a user into clicking a malicious link that forces the user to log into the attacker's account instead of their own. This allows the attacker to potentially capture information about the user's activities or perform actions on their behalf within the platform.

Technologies: [Leantime](https://junglewise.ai/threats/technologies/leantime). Vendors: [Leantime](https://junglewise.ai/threats/vendors/leantime).

## Quick answers

**Is CVE-2026-59713 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59713 being exploited in the wild.

**How severe is CVE-2026-59713?** High severity, with a CVSS score of 8.1, published 6 July 2026.

**Which products and versions are affected?** Leantime <= 3.4.4.

**Is there a fix for CVE-2026-59713?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-59713 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-59713?** Check whether you run Leantime at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Cross-Site Request Forgery (CSRF) vulnerability exists in Leantime's OIDC authentication flow due to a stubbed 'verifyState()' method in 'app/Domain/Oidc/Services/Oidc.php'. The method unconditionally returns true, failing to validate the 'state' parameter against the user's session. An attacker can exploit this by crafting a malicious OIDC callback URL containing an attacker-controlled authorization code. If a victim visits this URL, the application completes the token exchange using the attacker's credentials, effectively logging the victim into the attacker's account (session fixation). The vulnerability is present in versions up to 3.4.4 and was addressed in commit 9630eb7.

## Affected products

- Leantime Leantime <= 3.4.4

## Timeline

- 2026-05-22: disclosed: Initial report to vendor security email
- 2026-06-17: other: Public GitHub issue opened
- 2026-07-06: advisory: NVD publication date

## References

- [https://github.com/Leantime/leantime](https://github.com/Leantime/leantime)
- [https://github.com/Leantime/leantime/commit/9630eb7db682fb1b4e23cdabf3428d03ec6f5094](https://github.com/Leantime/leantime/commit/9630eb7db682fb1b4e23cdabf3428d03ec6f5094)
- [https://github.com/Leantime/leantime/issues/3535](https://github.com/Leantime/leantime/issues/3535)
- [https://www.vulncheck.com/advisories/leantime-oidc-login-csrf-via-unconditional-state-verification-stub](https://www.vulncheck.com/advisories/leantime-oidc-login-csrf-via-unconditional-state-verification-stub)

## Related threats

- [Leantime privilege escalation via unauthorized JSON-RPC methods](https://junglewise.ai/threats/cve-2026-85990-leantime-any-authenticated-user-can-self-escalate-to-admin-via)
- [Leantime authorization bypass in plugin marketplace endpoint](https://junglewise.ai/threats/cve-2026-92772-leantime-authorization-bypass-in-plugin-marketplace-endpoint)
- [Leantime CSRF protection disabled in global middleware stack](https://junglewise.ai/threats/cve-2026-66416-leantime-csrf-protection-disabled-in-global-middleware-stack)
- [Leantime SSRF and LFI in Blueprints import method](https://junglewise.ai/threats/cve-2026-66415-leantime-ssrf-and-lfi-in-blueprints-import-method)
- [Leantime open redirect in Login controller](https://junglewise.ai/threats/cve-2026-66414-leantime-open-redirect-in-login-controller)
