CVE-2025-2361 Mercurial SCM Web Interface cross site scripting
Attackers can execute arbitrary scripts in victims' browsers via the Mercurial SCM web interface, potentially leading to session hijacking or data theft.
- 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
- Available
What is CVE-2025-2361?
CVE-2025-2361 is a medium-severity cross-site scripting vulnerability in Mercurial SCM, published on 17 Mar 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
A vulnerability was found in Mercurial SCM 4.5.3/71.19.145.211. It has been declared as problematic. This vulnerability affects unknown code of the component Web Interface. The manipulation of the argument cmd leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Which versions are affected by CVE-2025-2361?
Linux distribution packages (13)
mercurial SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Manager Proxy 4.3 | All versions | 5.9.1-150400.3.6.1 |
mercurial SUSE:Manager Server 4.3 | All versions | 5.9.1-150400.3.6.1 |
mercurial openSUSE:Leap 15.6 | All versions | 5.9.1-150400.3.6.1 |
mercurial openSUSE:Tumbleweed | All versions | 6.9.4-1.1 |
How do I fix CVE-2025-2361?
Apply the vendor's patch.
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-2361 being exploited?
There is no known exploitation of CVE-2025-2361 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-2361, DEBIAN-CVE-2025-2361, DLA-4094-1, DSA-5883-1, GHSA-4hg3-3xxj-v749, MGASA-2025-0120 and 6 more.