CVE-2024-8008 Reflected Cross-Site Scripting (XSS) in Multiple WSO2 Products via JDBC User Store Connection Validation

Medium 5.2 Published Updated

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.

PackageAffectedFixed in
org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.ui MavenAll versions7.5.12
org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.ui MavenAll versions7.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.

All Wso2 Api Manager vulnerabilities

Sources

Also known as GHSA-xpxp-r8hf-wgf6.

Is CVE-2024-8008 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free