CVE-2025-51990 Cross-site scripting in n/a

Medium 4.8 Published Updated

Authenticated administrators can inject persistent JavaScript into global preferences, leading to session hijacking and credential theft for all site visitors.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-51990?

CVE-2025-51990 is a medium-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 20 Aug 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

XWiki through version 17.3.0 is affected by multiple stored Cross-Site Scripting (XSS) vulnerabilities in the Administration interface, specifically under the Presentation section of the Global Preferences panel. An authenticated administrator can inject arbitrary JavaScript payloads into the HTTP Meta Info, Footer Copyright, and Footer Version fields. These inputs are stored and subsequently rendered without proper output encoding or sanitization on public-facing pages. As a result, the injected scripts are persistently executed in the browser context of any visitor to the affected instances including both authenticated and unauthenticated users. No user interaction is required beyond visiting a page that includes the malicious content. Successful exploitation can lead to session hijacking, credential theft, unauthorized actions via session riding, or further compromise of the application through client-side attacks. The vulnerability introduces significant risk in any deployment, especially in shared or internet-facing environments where administrator credentials may be compromised.

Weakness: CWE-79

Which versions are affected by CVE-2025-51990?

It affects 1 product.

Products include Xwiki Xwiki.

How do I fix CVE-2025-51990?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51990 exists.

Public exploit code: 1 Nuclei template.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-6jx2-qgxg-f4q9.

Is CVE-2025-51990 in your software?

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

Check your SBOMs for free