CVE-2024-5848 Reflected Cross-Site Scripting (XSS) in Multiple WSO2 Products Due to Improper Input Validation
Attackers can inject malicious scripts into WSO2 products via reflected XSS, enabling UI manipulation or data exfiltration from user browsers.
- 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-5848?
CVE-2024-5848 is a medium-severity cross-site scripting vulnerability in Wso2 Api Manager, published on 27 Feb 2025. 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
A reflected cross-site scripting (XSS) vulnerability exists in multiple WSO2 products due to improper input validation. User-supplied data is directly included in server responses from vulnerable service endpoints without proper sanitization or encoding, allowing an attacker to inject malicious JavaScript.
Successful exploitation could lead to UI manipulation, redirection to malicious websites, or data exfiltration from the browser. While session-related sensitive cookies are protected with the httpOnly flag, mitigating session hijacking risks, the impact may vary depending on gateway-level service restrictions.
Weakness: CWE-79
Which versions are affected by CVE-2024-5848?
It affects 1 product.
Products include Wso2 Api Manager.
How do I fix CVE-2024-5848?
No fix has been published for CVE-2024-5848 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-5848 being exploited?
There is no known exploitation of CVE-2024-5848 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-4fqp-f52h-wwp8.