CVE-2025-1397
When utilizing JWT Bearer or SAML2 Bearer grant types, the system fails to validate the status of the Identity Provider (IDP) before issuing access tokens.
Impact
When utilizing JWT Bearer or SAML2 Bearer grant types, the system fails to validate the status of the Identity Provider (IDP) before issuing access tokens. This oversight permits tokens to be generated even when the associated IDP has been disabled. A malicious actor could leverage this vulnerability to obtain access tokens by targeting a disabled IDP. This could enable them to bypass intended security controls and potentially access protected resources that should be inaccessible due to the IDP's disabled state.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data being read, low risk of data or systems being changed.
Affected products · WSO2
| Product | Affected versions |
|---|---|
| JWT Grant Type For OAuth2 | from 1.0.26 before 1.0.26.6 from 1.0.26 before 1.0.26.7 from 1.0.31 before 1.0.31.3 from 1.1.0 before 1.1.0.2 from 2.0.4 before 2.0.4.3 from 2.1.1 before 2.1.1.2 |
| WSO2 API Control Plane | from 4.5.0 before 4.5.0.11 |
| WSO2 API Manager | from 3.1.0 before 3.1.0.321 from 3.2.0 before 3.2.0.414 from 3.2.1 before 3.2.1.50 from 4.0.0 before 4.0.0.335 from 4.1.0 before 4.1.0.211 from 4.2.0 before 4.2.0.150 |
| WSO2 Carbon OAuth | from 6.4.2 before 6.4.2.155 from 6.4.111 before 6.4.111.134 from 6.4.176 before 6.4.176.25 from 6.4.180 before 6.4.180.11 from 6.8.0 before 6.8.0.49 from 6.9.6 before 6.9.6.22 |
| WSO2 Identity Server | from 5.10.0 before 5.10.0.346 from 5.11.0 before 5.11.0.396 from 6.0.0 before 6.0.0.232 from 6.1.0 before 6.1.0.224 from 7.0.0 before 7.0.0.93 |
| WSO2 Identity Server as Key Manager | from 5.10.0 before 5.10.0.339 |
| WSO2 Open Banking AM | from 2.0.0 before 2.0.0.370 |
| WSO2 Open Banking IAM | from 2.0.0 before 2.0.0.390 |
| WSO2 Traffic Manager | from 4.5.0 before 4.5.0.10 |
| WSO2 Universal Gateway | from 4.5.0 before 4.5.0.10 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4010/
- https://github.com/advisories/GHSA-7h45-367c-v4hm
- https://nvd.nist.gov/vuln/detail/CVE-2025-1397
- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4010