---
id: CVE-2024-5139
title: >-
  Cross-Site Scripting via Authentication Endpoint in Multiple WSO2 Products
  Enables UI Manipulation and Redirection
summary: >-
  The Authentication Endpoint accepts user-supplied input without sufficient
  encoding, allowing for the injection of malicious JavaScript payloads. This
  vulnerability can be triggered by submitting crafted input to the
  Authentication Endpo…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: WSO2
product: WSO2 Enterprise Integrator
affected:
  - enterprise_integrator >= 6.6.0 < 6.6.0.204
  - identity_server >= 5.10.0 < 5.10.0.310
  - identity_server >= 6.0.0 < 6.0.0.212
  - identity_server >= 6.1.0 < 6.1.0.195
  - identity_server >= 7.0.0 < 7.0.0.64
  - api_manager >= 3.1.0 < 3.1.0.286
  - api_manager >= 3.2.0 < 3.2.0.376
  - api_manager >= 3.2.1 < 3.2.1.10
  - api_manager >= 4.0.0 < 4.0.0.299
  - api_manager >= 4.1.0 < 4.1.0.159
  - api_manager >= 4.2.0 < 4.2.0.91
  - api_manager >= 4.3.0 < 4.3.0.6
  - open_banking_am >= 2.0.0 < 2.0.0.336
  - identity_server_as_key_manager >= 5.10.0 < 5.10.0.306
  - open_banking_iam >= 2.0.0 < 2.0.0.357
  - org.wso2.carbon.user.mgt.ui >= 5.14.127 < 5.14.127.6
  - org.wso2.carbon.user.mgt.ui >= 5.17.5 < 5.17.5.273
  - org.wso2.carbon.user.mgt.ui >= 5.17.118 < 5.17.118.3
  - org.wso2.carbon.user.mgt.ui >= 5.18.187 < 5.18.187.260
  - org.wso2.carbon.user.mgt.ui >= 5.18.248 < 5.18.248.12
  - org.wso2.carbon.user.mgt.ui >= 5.23.8 < 5.23.8.191
  - org.wso2.carbon.user.mgt.ui >= 5.24.8 < 5.24.8.3
  - org.wso2.carbon.user.mgt.ui >= 5.25.92 < 5.25.92.99
  - org.wso2.carbon.user.mgt.ui >= 5.25.705 < 5.25.705.3
  - org.wso2.carbon.user.mgt.ui >= 7.0.78 < 7.0.78.43
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T13:36:49.246Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-5139'
references:
  - url: >-
      https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2024-3382/
  - url: 'https://github.com/wso2/carbon-identity-framework/pull/5740'
  - url: 'https://github.com/wso2/carbon-identity-framework/pull/5741'
tags:
  - cve.org
ingestedAt: '2026-10-21T13:57:01.114Z'
---

## Overview

The Authentication Endpoint accepts user-supplied input without sufficient encoding, allowing for the injection of malicious JavaScript payloads. This vulnerability can be triggered by submitting crafted input to the Authentication Endpoint.

Successful exploitation allows an attacker to redirect the user's browser to a malicious website, modify the web page's user interface, or extract sensitive information from the browser. However, due to the `httpOnly` flag on session-related cookies, session hijacking is not possible.

## Affected

- `enterprise_integrator >= 6.6.0 < 6.6.0.204`
- `identity_server >= 5.10.0 < 5.10.0.310`
- `identity_server >= 6.0.0 < 6.0.0.212`
- `identity_server >= 6.1.0 < 6.1.0.195`
- `identity_server >= 7.0.0 < 7.0.0.64`
- `api_manager >= 3.1.0 < 3.1.0.286`
- `api_manager >= 3.2.0 < 3.2.0.376`
- `api_manager >= 3.2.1 < 3.2.1.10`
- `api_manager >= 4.0.0 < 4.0.0.299`
- `api_manager >= 4.1.0 < 4.1.0.159`
- `api_manager >= 4.2.0 < 4.2.0.91`
- `api_manager >= 4.3.0 < 4.3.0.6`
- `open_banking_am >= 2.0.0 < 2.0.0.336`
- `identity_server_as_key_manager >= 5.10.0 < 5.10.0.306`
- `open_banking_iam >= 2.0.0 < 2.0.0.357`
- `org.wso2.carbon.user.mgt.ui >= 5.14.127 < 5.14.127.6`
- `org.wso2.carbon.user.mgt.ui >= 5.17.5 < 5.17.5.273`
- `org.wso2.carbon.user.mgt.ui >= 5.17.118 < 5.17.118.3`
- `org.wso2.carbon.user.mgt.ui >= 5.18.187 < 5.18.187.260`
- `org.wso2.carbon.user.mgt.ui >= 5.18.248 < 5.18.248.12`
- `org.wso2.carbon.user.mgt.ui >= 5.23.8 < 5.23.8.191`
- `org.wso2.carbon.user.mgt.ui >= 5.24.8 < 5.24.8.3`
- `org.wso2.carbon.user.mgt.ui >= 5.25.92 < 5.25.92.99`
- `org.wso2.carbon.user.mgt.ui >= 5.25.705 < 5.25.705.3`
- `org.wso2.carbon.user.mgt.ui >= 7.0.78 < 7.0.78.43`

## Remediation

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