CVE-2024-8008 Reflected Cross-Site Scripting (XSS) in Multiple WSO2 Products via JDBC User Store Connection Validation
Attackers can inject JavaScript into WSO2 products via JDBC validation errors, enabling UI manipulation or data exfiltration, though session hijacking is prevented.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-8008?
CVE-2024-8008 is a medium-severity cross-site scripting vulnerability in Wso2 Api Manager, published on 2 Jun 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A reflected cross-site scripting (XSS) vulnerability exists in multiple WSO2 products due to insufficient output encoding in error messages generated by the JDBC user store connection validation request. A malicious actor can inject a specially crafted payload into the request, causing the browser to execute arbitrary JavaScript in the context of the vulnerable page.
This vulnerability may allow UI manipulation, redirection to malicious websites, or data exfiltration from the browser. However, since all session-related sensitive cookies are protected with the httpOnly flag, session hijacking is not possible.
Weakness: CWE-79
Which versions are affected by CVE-2024-8008?
2 open source packages ship an affected version, including org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.ui. It affects 6 products.
| Package | Affected | Fixed in |
|---|---|---|
org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.ui Maven | All versions | 7.5.12 |
org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.ui Maven | All versions | 7.5.12 |
Products include Wso2 Api Manager, Wso2 Enterprise Integrator, Wso2 Identity Server, Wso2 Identity Server as Key Manager, Wso2 Open Banking Am, Wso2 Open Banking Iam.
How do I fix CVE-2024-8008?
Upgrade org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.ui to 7.5.12 or later.
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-8008 being exploited?
There is no known exploitation of CVE-2024-8008 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-xpxp-r8hf-wgf6.