CVE-2025-42872 Cross-Site Scripting (XSS) vulnerability in SAP NetWeaver Enterprise Portal
An unauthenticated attacker can inject malicious scripts into SAP NetWeaver Enterprise Portal to steal session cookies and tokens from other users.
- 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-2025-42872?
CVE-2025-42872 is a medium-severity cross-site scripting vulnerability in SAP_SE SAP NetWeaver Enterprise Portal, published on 9 Dec 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
Due to a Cross-Site Scripting (XSS) vulnerability in SAP NetWeaver Enterprise Portal, an unauthenticated attacker could inject malicious scripts that execute in the context of other users� browsers, allowing the attacker to steal session cookies, tokens, and other sensitive information. As a result, the vulnerability has a low impact on confidentiality and integrity and no impact on availability.
Weakness: CWE-489
Which versions are affected by CVE-2025-42872?
How do I fix CVE-2025-42872?
No fix has been published for CVE-2025-42872 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-2025-42872 being exploited?
There is no known exploitation of CVE-2025-42872 in the wild and no public exploit code.
Sources
Also known as GHSA-4f68-6cfp-mfcj.