# CVE-2025-1397: Improper IDP Status Validation via JWT Bearer or SAML2 Bearer Grants in Multiple WSO2 Products Allows Access Token Issuance for Disabled Identity Providers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.8
- **CVSS:** 4.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-862
- **Published:** 2026-11-03T06:07:57.302Z
- **Modified:** 2026-11-05T13:10:00.180Z

## Who should check

- Anyone running WSO2 Universal Gateway \>= 4.5.0, \< 4.5.0.10
- Anyone running WSO2 Traffic Manager \>= 4.5.0, \< 4.5.0.10
- Anyone running WSO2 API Manager \>= 3.1.0, \< 3.1.0.321; \>= 3.2.0, \< 3.2.0.414; \>= 3.2.1, \< 3.2.1.50; \>= 4.0.0, \< 4.0.0.335; \>= 4.1.0, \< 4.1.0.211; \>= 4.2.0, \< 4.2.0.150; \>= 4.3.0, \< 4.3.0.63; \>= 4.4.0, \< 4.4.0.26; \>= 4.5.0, \< 4.5.0.10
- Anyone running WSO2 API Control Plane \>= 4.5.0, \< 4.5.0.11
- Anyone running WSO2 Identity Server \>= 5.10.0, \< 5.10.0.346; \>= 5.11.0, \< 5.11.0.396; \>= 6.0.0, \< 6.0.0.232; \>= 6.1.0, \< 6.1.0.224; \>= 7.0.0, \< 7.0.0.93
- Anyone running WSO2 Open Banking AM \>= 2.0.0, \< 2.0.0.370
- Anyone running WSO2 Open Banking IAM \>= 2.0.0, \< 2.0.0.390
- Anyone running WSO2 Identity Server as Key Manager \>= 5.10.0, \< 5.10.0.339

## Description

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.

## Affected and fixed versions

- WSO2 Universal Gateway: \>= 4.5.0, \< 4.5.0.10 (cvelist)
- WSO2 Traffic Manager: \>= 4.5.0, \< 4.5.0.10 (cvelist)
- WSO2 API Manager: \>= 3.1.0, \< 3.1.0.321; \>= 3.2.0, \< 3.2.0.414; \>= 3.2.1, \< 3.2.1.50; \>= 4.0.0, \< 4.0.0.335; \>= 4.1.0, \< 4.1.0.211; \>= 4.2.0, \< 4.2.0.150; \>= 4.3.0, \< 4.3.0.63; \>= 4.4.0, \< 4.4.0.26; \>= 4.5.0, \< 4.5.0.10 (cvelist)
- WSO2 API Control Plane: \>= 4.5.0, \< 4.5.0.11 (cvelist)
- WSO2 Identity Server: \>= 5.10.0, \< 5.10.0.346; \>= 5.11.0, \< 5.11.0.396; \>= 6.0.0, \< 6.0.0.232; \>= 6.1.0, \< 6.1.0.224; \>= 7.0.0, \< 7.0.0.93 (cvelist)
- WSO2 Open Banking AM: \>= 2.0.0, \< 2.0.0.370 (cvelist)
- WSO2 Open Banking IAM: \>= 2.0.0, \< 2.0.0.390 (cvelist)
- WSO2 Identity Server as Key Manager: \>= 5.10.0, \< 5.10.0.339 (cvelist)
- WSO2 Carbon OAuth: \>= 6.4.2, \< 6.4.2.155; \>= 6.4.111, \< 6.4.111.134; \>= 6.4.176, \< 6.4.176.25; \>= 6.4.180, \< 6.4.180.11; \>= 6.8.0, \< 6.8.0.49; \>= 6.9.6, \< 6.9.6.22; \>= 6.11.21, \< 6.11.21.75; \>= 6.13.16, \< 6.13.16.15; \>= 6.13.19, \< 6.13.19.9; \>= 6.13.27, \< 6.13.27.2; … (cvelist)
- WSO2 JWT Grant Type For OAuth2: \>= 1.0.26, \< 1.0.26.6; \>= 1.0.26, \< 1.0.26.7; \>= 1.0.31, \< 1.0.31.3; \>= 1.1.0, \< 1.1.0.2; \>= 2.0.4, \< 2.0.4.3; \>= 2.1.1, \< 2.1.1.2; \>= 2.2.0, \< 2.2.0.3; \>= 2.2.4, \< 2.2.4.1; \>= 2.3.1, \< 2.3.1.4 (cvelist)

## Mitigation

- Upgrade WSO2 Universal Gateway to 4.5.0.10 or later.
- Upgrade WSO2 Traffic Manager to 4.5.0.10 or later.
- Upgrade WSO2 API Manager to 4.5.0.10 or later.
- Upgrade WSO2 API Control Plane to 4.5.0.11 or later.
- Upgrade WSO2 Identity Server to 7.0.0.93 or later.
- Upgrade WSO2 Open Banking AM to 2.0.0.370 or later.
- Upgrade WSO2 Open Banking IAM to 2.0.0.390 or later.
- Upgrade WSO2 Identity Server as Key Manager to 5.10.0.339 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-1397. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-1397.md
Affected: WSO2 Universal Gateway >= 4.5.0, < 4.5.0.10; WSO2 Traffic Manager >= 4.5.0, < 4.5.0.10; WSO2 API Manager >= 3.1.0, < 3.1.0.321; >= 3.2.0, < 3.2.0.414; >= 3.2.1, < 3.2.1.50; >= 4.0.0, < 4.0.0.335; >= 4.1.0, < 4.1.0.211; >= 4.2.0, < 4.2.0.150; >= 4.3.0, < 4.3.0.63; >= 4.4.0, < 4.4.0.26; >= 4.5.0, < 4…
Fixed in: WSO2 Universal Gateway 4.5.0.10, WSO2 Traffic Manager 4.5.0.10, WSO2 API Manager 3.1.0.321, WSO2 API Manager 3.2.0.414, WSO2 API Manager 3.2.1.50, WSO2 API Manager 4.0.0.335, WSO2 API Manager 4.1.0.211, WSO2 API Manager 4.2.0.150, WSO2 API Manager 4.3.0.63, WSO2 API Manager 4.4.0.26, WSO2 API Manag…

Steps:
1. Search this machine and project for WSO2 Universal Gateway, WSO2 Traffic Manager, WSO2 API Manager, WSO2 API Control Plane, WSO2 Identity Server, WSO2 Open Banking AM: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-1397 being exploited?

There is no confirmed exploitation: CVE-2025-1397 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-1397?

Medium: CVSS 4.8 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-1397?

WSO2 Universal Gateway \>= 4.5.0, \< 4.5.0.10; WSO2 Traffic Manager \>= 4.5.0, \< 4.5.0.10; WSO2 API Manager \>= 3.1.0, \< 3.1.0.321; \>= 3.2.0, \< 3.2.0.414; \>= 3.2.1, \< 3.2.1.50; \>= 4.0.0, \< 4.0.0.335; \>= 4.1.0, \< 4.1.0.211; \>= 4.2.0, \< 4.2.0.150; \>= 4.3.0, \< 4.3.0.63; \>= 4.4.0, \< 4.4.0.26; \>= 4.5.0, \< 4.5.0.10; WSO2 API Control Plane \>= 4.5.0, \< 4.5.0.11; WSO2 Identity Server \>= 5.10.0, \< 5.10.0.346; \>= 5.11.0, \< 5.11.0.396; \>= 6.0.0, \< 6.0.0.232; \>= 6.1.0, \< 6.1.0.224; \>= 7.0.0, \< 7.0.0.93; WSO2 Open Banking AM \>= 2.0.0, \< 2.0.0.370; WSO2 Open Banking IAM \>= 2.0.0, \< 2.0.0.390; WSO2 Identity Server as Key Manager \>= 5.10.0, \< 5.10.0.339; WSO2 Carbon OAuth \>= 6.4.2, \< 6.4.2.155; \>= 6.4.111, \< 6.4.111.134; \>= 6.4.176, \< 6.4.176.25; \>= 6.4.180, \< 6.4.180.11; \>= 6.8.0, \< 6.8.0.49; \>= 6.9.6, \< 6.9.6.22; \>= 6.11.21, \< 6.11.21.75; \>= 6.13.16, \< 6.13.16.15; \>= 6.13.19, \< 6.13.19.9; \>= 6.13.27, \< 6.13.27.2; …; WSO2 JWT Grant Type For OAuth2 \>= 1.0.26, \< 1.0.26.6; \>= 1.0.26, \< 1.0.26.7; \>= 1.0.31, \< 1.0.31.3; \>= 1.1.0, \< 1.1.0.2; \>= 2.0.4, \< 2.0.4.3; \>= 2.1.1, \< 2.1.1.2; \>= 2.2.0, \< 2.2.0.3; \>= 2.2.4, \< 2.2.4.1; \>= 2.3.1, \< 2.3.1.4.

### Is there a fix for CVE-2025-1397?

Yes. Fixed in WSO2 Universal Gateway 4.5.0.10, WSO2 Traffic Manager 4.5.0.10, WSO2 API Manager 3.1.0.321, WSO2 API Manager 3.2.0.414, WSO2 API Manager 3.2.1.50, WSO2 API Manager 4.0.0.335, WSO2 API Manager 4.1.0.211, WSO2 API Manager 4.2.0.150, WSO2 API Manager 4.3.0.63, WSO2 API Manager 4.4.0.26, WSO2 API Manager 4.5.0.10, WSO2 API Control Plane 4.5.0.11, WSO2 Identity Server 5.10.0.346, WSO2 Identity Server 5.11.0.396, WSO2 Identity Server 6.0.0.232, WSO2 Identity Server 6.1.0.224, WSO2 Identity Server 7.0.0.93, WSO2 Open Banking AM 2.0.0.370, WSO2 Open Banking IAM 2.0.0.390, WSO2 Identity Server as Key Manager 5.10.0.339, WSO2 Carbon OAuth 6.4.2.155, WSO2 Carbon OAuth 6.4.111.134, WSO2 Carbon OAuth 6.4.176.25, WSO2 Carbon OAuth 6.4.180.11, WSO2 Carbon OAuth 6.8.0.49, WSO2 Carbon OAuth 6.9.6.22, WSO2 Carbon OAuth 6.11.21.75, WSO2 Carbon OAuth 6.13.16.15, WSO2 Carbon OAuth 6.13.19.9, WSO2 Carbon OAuth 6.13.27.2, WSO2 JWT Grant Type For OAuth2 1.0.26.6, WSO2 JWT Grant Type For OAuth2 1.0.26.7, WSO2 JWT Grant Type For OAuth2 1.0.31.3, WSO2 JWT Grant Type For OAuth2 1.1.0.2, WSO2 JWT Grant Type For OAuth2 2.0.4.3, WSO2 JWT Grant Type For OAuth2 2.1.1.2, WSO2 JWT Grant Type For OAuth2 2.2.0.3, WSO2 JWT Grant Type For OAuth2 2.2.4.1, WSO2 JWT Grant Type For OAuth2 2.3.1.4. Upgrade WSO2 Universal Gateway to 4.5.0.10 or later. Upgrade WSO2 Traffic Manager to 4.5.0.10 or later. Upgrade WSO2 API Manager to 4.5.0.10 or later. Upgrade WSO2 API Control Plane to 4.5.0.11 or later. Upgrade WSO2 Identity Server to 7.0.0.93 or later. Upgrade WSO2 Open Banking AM to 2.0.0.370 or later. Upgrade WSO2 Open Banking IAM to 2.0.0.390 or later. Upgrade WSO2 Identity Server as Key Manager to 5.10.0.339 or later.

### How do I check if I'm affected by CVE-2025-1397?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4010/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-1397>

HTML: <https://flawdb.com/CVE-2025-1397> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-1397>
