CVE-2024-10242 Reflected Cross-Site Scripting via Authentication Endpoint in WSO2 API Manager Allows UI Modification and Redirection
Attackers can inject scripts into the authentication endpoint to redirect users or modify the UI, though session hijacking is prevented by httpOnly cookies.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-10242?
CVE-2024-10242 is a medium-severity cross-site scripting vulnerability in Wso2 Api Manager, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The authentication endpoint fails to adequately validate user-supplied input before reflecting it back in the response. This allows an attacker to inject malicious script payloads into the input parameters, which are then executed by the victim's browser.
Successful exploitation can enable an attacker to redirect the user's browser to a malicious website, modify the UI of the web page, or retrieve information from the browser. However, the impact is limited as session-related sensitive cookies are protected by the httpOnly flag, preventing session hijacking.
Weakness: CWE-79
Which versions are affected by CVE-2024-10242?
It affects 1 product.
Products include Wso2 Api Manager.
How do I fix CVE-2024-10242?
No fix has been published for CVE-2024-10242 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-10242 being exploited?
There is no known exploitation of CVE-2024-10242 in the wild and no public exploit code.
Other vulnerabilities in Wso2 Api Manager
- CVE-2022-29464 WSO2 Multiple Products Unrestrictive Upload of File
- CVE-2024-6914 Incorrect Authorization in Multiple WSO2 Products via Account Recovery SOAP Admin Service Leading to Account Takeover
- CVE-2020-13226 WSO2 API Manager vulnerable to SSRF
- CVE-2025-2905 An XML External Entity (XXE) vulnerability in Multiple WSO2 Products
- CVE-2021-42646 XML external entity in n/a
Sources
Also known as GHSA-6f87-4ph2-cp38.