CVE-2025-21572 Cross-site scripting in OpenGrok
Reflected XSS in OpenGrok history view allows attackers to execute arbitrary scripts in victim browsers via unsanitized path segments.
- 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-21572?
CVE-2025-21572 is a medium-severity cross-site scripting vulnerability in Oracle Corporation OpenGrok, published on 2 May 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
OpenGrok 1.13.25 has a reflected Cross-Site Scripting (XSS) issue when producing the history view page. This happens through improper handling of path segments. The application reflects unsanitized user input into the HTML output.
Weakness: CWE-79
Which versions are affected by CVE-2025-21572?
It affects 1 product.
Products include Oracle Opengrok.
How do I fix CVE-2025-21572?
No fix has been published for CVE-2025-21572 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-21572 being exploited?
There is no known exploitation of CVE-2025-21572 in the wild and no public exploit code.
Other vulnerabilities in Oracle Corporation OpenGrok
Sources
Also known as GHSA-5vvw-768m-99hf.