CVE-2025-42942 Cross-Site Scripting (XSS) vulnerability in SAP NetWeaver Application Server for ABAP

Medium 6.1 Published Updated

An unauthenticated attacker can execute malicious scripts in a victim's browser via a crafted URL, allowing access to and modification of limited information.

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-42942?

CVE-2025-42942 is a medium-severity cross-site scripting vulnerability in SAP_SE SAP NetWeaver Application Server for ABAP, published on 12 Aug 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

SAP NetWeaver Application Server for ABAP has cross-site scripting vulnerability. Due to this, an unauthenticated attacker could craft a URL embedded with malicious script and trick an unauthenticated victim to click on it to execute the script. Upon successful exploitation, the attacker could access and modify limited information within the scope of victim's browser. This vulnerability has no impact on availability of the application.

Weakness: CWE-79

Which versions are affected by CVE-2025-42942?

How do I fix CVE-2025-42942?

No fix has been published for CVE-2025-42942 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-42942 being exploited?

There is no known exploitation of CVE-2025-42942 in the wild and no public exploit code.

Sources

Also known as GHSA-f747-wqq2-4rg3.

Is CVE-2025-42942 in your software?

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

Check your SBOMs for free