---
id: CVE-2025-1397
title: >-
  Improper IDP Status Validation via JWT Bearer or SAML2 Bearer Grants in
  Multiple WSO2 Products Allows Access Token Issuance for Disabled Identity
  Providers
summary: >-
  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 be…
severity: medium
cvss: 4.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-862
vendor: WSO2
product: WSO2 Universal Gateway
affected:
  - universal_gateway >= 4.5.0 < 4.5.0.10
  - traffic_manager >= 4.5.0 < 4.5.0.10
  - api_manager >= 3.1.0 < 3.1.0.321
  - api_manager >= 3.2.0 < 3.2.0.414
  - api_manager >= 3.2.1 < 3.2.1.50
  - api_manager >= 4.0.0 < 4.0.0.335
  - api_manager >= 4.1.0 < 4.1.0.211
  - api_manager >= 4.2.0 < 4.2.0.150
  - api_manager >= 4.3.0 < 4.3.0.63
  - api_manager >= 4.4.0 < 4.4.0.26
  - api_manager >= 4.5.0 < 4.5.0.10
  - api_control_plane >= 4.5.0 < 4.5.0.11
  - identity_server >= 5.10.0 < 5.10.0.346
  - identity_server >= 5.11.0 < 5.11.0.396
  - identity_server >= 6.0.0 < 6.0.0.232
  - identity_server >= 6.1.0 < 6.1.0.224
  - identity_server >= 7.0.0 < 7.0.0.93
  - open_banking_am >= 2.0.0 < 2.0.0.370
  - open_banking_iam >= 2.0.0 < 2.0.0.390
  - identity_server_as_key_manager >= 5.10.0 < 5.10.0.339
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.4.2 < 6.4.2.155
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.4.111 < 6.4.111.134
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.4.176 < 6.4.176.25
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.4.180 < 6.4.180.11
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.8.0 < 6.8.0.49
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.9.6 < 6.9.6.22
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.11.21 < 6.11.21.75
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.13.16 < 6.13.16.15
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.13.19 < 6.13.19.9
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 6.13.27 < 6.13.27.2
  - >-
    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth
    >= 7.0.26 < 7.0.26.58
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 1.0.26 < 1.0.26.6
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 1.0.26 < 1.0.26.7
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 1.0.31 < 1.0.31.3
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 1.1.0 < 1.1.0.2
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 2.0.4 < 2.0.4.3
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 2.1.1 < 2.1.1.2
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 2.2.0 < 2.2.0.3
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 2.2.4 < 2.2.4.1
  - >-
    org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt
    >= 2.3.1 < 2.3.1.4
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-03T20:03:01.670683Z'
published: '2026-11-03'
updated: '2026-11-03'
sourceUpdated: '2026-11-03T20:03:19.304Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-1397'
references:
  - url: >-
      https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4010/
tags:
  - cve.org
epss: 0.00152
epssPercentile: 0.0434
ingestedAt: '2026-11-05T20:33:06.428Z'
---

## Overview

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

- `universal_gateway >= 4.5.0 < 4.5.0.10`
- `traffic_manager >= 4.5.0 < 4.5.0.10`
- `api_manager >= 3.1.0 < 3.1.0.321`
- `api_manager >= 3.2.0 < 3.2.0.414`
- `api_manager >= 3.2.1 < 3.2.1.50`
- `api_manager >= 4.0.0 < 4.0.0.335`
- `api_manager >= 4.1.0 < 4.1.0.211`
- `api_manager >= 4.2.0 < 4.2.0.150`
- `api_manager >= 4.3.0 < 4.3.0.63`
- `api_manager >= 4.4.0 < 4.4.0.26`
- `api_manager >= 4.5.0 < 4.5.0.10`
- `api_control_plane >= 4.5.0 < 4.5.0.11`
- `identity_server >= 5.10.0 < 5.10.0.346`
- `identity_server >= 5.11.0 < 5.11.0.396`
- `identity_server >= 6.0.0 < 6.0.0.232`
- `identity_server >= 6.1.0 < 6.1.0.224`
- `identity_server >= 7.0.0 < 7.0.0.93`
- `open_banking_am >= 2.0.0 < 2.0.0.370`
- `open_banking_iam >= 2.0.0 < 2.0.0.390`
- `identity_server_as_key_manager >= 5.10.0 < 5.10.0.339`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.4.2 < 6.4.2.155`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.4.111 < 6.4.111.134`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.4.176 < 6.4.176.25`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.4.180 < 6.4.180.11`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.8.0 < 6.8.0.49`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.9.6 < 6.9.6.22`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.11.21 < 6.11.21.75`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.13.16 < 6.13.16.15`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.13.19 < 6.13.19.9`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 6.13.27 < 6.13.27.2`
- `org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth >= 7.0.26 < 7.0.26.58`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 1.0.26 < 1.0.26.6`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 1.0.26 < 1.0.26.7`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 1.0.31 < 1.0.31.3`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 1.1.0 < 1.1.0.2`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 2.0.4 < 2.0.4.3`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 2.1.1 < 2.1.1.2`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 2.2.0 < 2.2.0.3`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 2.2.4 < 2.2.4.1`
- `org.wso2.carbon.extension.identity.oauth2.grantType.jwt:org.wso2.carbon.identity.oauth2.grant.jwt >= 2.3.1 < 2.3.1.4`

## Remediation

Follow the instructions given on https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4010/#solution
