Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-5848
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:02 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-5848
Complete source record
{
"id": "98248b0ac0870d642ec495de63048e37653831f7dd9c707510e37b5102f925e3",
"url": "https://osv.dev/vulnerability/CVE-2024-5848",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2024-5848",
"summary": "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.",
"evidence": "osv:CVE-2024-5848",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-5848",
"aliases": [
"CVE-2024-5848"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wso2/product-apim",
"type": "GIT",
"events": [
{
"introduced": "2971de274564b622974de831403e9688a4a76c14"
},
{
"last_affected": "6e7a9db24a575f1f4a5bc4f4cbb41687c308c466"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wso2:api_manager:3.1.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.0"
},
{
"last_affected": "3.1.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:wso2:api_manager:3.2.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.0"
},
{
"last_affected": "3.2.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:wso2:api_manager:4.0.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"last_affected": "4.0.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:wso2:api_manager:4.1.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "4.1.0-NA"
},
{
"last_affected": "4.1.0-NA"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:wso2:api_manager:4.2.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "4.2.0-NA"
},
{
"last_affected": "4.2.0-NA"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:wso2:api_manager:4.3.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "4.3.0-NA"
},
{
"last_affected": "4.3.0-NA"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.1.0",
"3.2.0",
"4.0.0",
"4.1.0-NA",
"4.2.0-NA",
"4.3.0-NA",
"v4.3.0-rc2",
"v4.3.0",
"v4.3.0-rc",
"v4.3.0-beta",
"v4.3.0-alpha2",
"v4.3.0-alpha",
"v4.3.0-m2",
"v4.2.0-rc2",
"v4.2.0",
"v4.2.0-rc",
"v4.2.0-beta",
"v4.2.0-alpha",
"v4.2.0-m1",
"v4.1.0-rc3",
"v4.1.0",
"v4.1.0-rc2",
"v4.1.0-rc",
"v4.1.0-beta",
"v4.1.0-alpha",
"v4.1.0-m4",
"v4.1.0-m3",
"v4.1.0-m2",
"v4.1.0-m1",
"v4.0.0-rc",
"v4.0.0",
"4.0.0-beta",
"v4.0.0-beta",
"v4.0.0-alpha",
"v4.0.0-m8",
"v4.0.0-m7",
"v4.0.0-m6",
"v4.0.0-m5",
"v4.0.0-m4",
"v4.0.0-m3",
"v4.0.0-m2",
"v4.0.0-m1",
"v3.2.0-rc6",
"v3.2.0",
"v3.2.0-rc5",
"v3.2.0-rc4",
"v3.2.0-rc3",
"v3.2.0-rc2",
"v3.2.0-rc1",
"v3.2.0-beta",
"v3.2.0-alpha",
"v3.2.0-m1",
"v3.1.0-rc3",
"v3.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5848.json"
}
}
],
"modified": "2026-10-24T10:30:47.680459263Z",
"provider": "osv",
"references": [
"https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2024/WSO2-2024-3450/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:wso2:api_manager:3.2.1:*:*:*:*:*:*:*"
],
"vendor_product": "wso2:api_manager",
"extracted_events": [
{
"range": [
{
"introduced": "3.2.1"
},
{
"last_affected": "3.2.1"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2024-5848",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 436595,
"published_at": "2025-02-27T08:15:30.887+00:00"
}