Cross-site scripting in Mercurial - CVE-2025-2361

 

Cross-site scripting in Mercurial - CVE-2025-2361

Published: March 24, 2025


Vulnerability identifier: #VU105971
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2025-2361
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

Mercurial
Debian Linux
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
Basesystem Module
openSUSE Leap
openEuler
Anolis OS
mercurial-help
mercurial-debugsource
mercurial-debuginfo
mercurial
mercurial-lang
mercurial-tests
mercurial (Debian package)
mercurial-chg
mercurial-doc
mercurial-hgk

How to mitigate CVE-2025-2361

Install updates from vendor's website.

Mercurial - update to 6.9.4
mercurial-help - addressed in versions 5.1-4, 5.6.1-2, 6.6.1-2
mercurial-debugsource - addressed in versions 5.1-4, 5.6.1-2, 6.6.1-2
mercurial-debuginfo - addressed in versions 5.1-4, 5.6.1-2, 6.6.1-2
mercurial - addressed in versions 5.1-4, 5.6.1-2, 6.6.1-2
mercurial-lang - update to 5.9.1-150400.3.6.1
mercurial-debugsource - update to 5.9.1-150400.3.6.1
mercurial-debuginfo - update to 5.9.1-150400.3.6.1
mercurial-tests - update to 5.9.1-150400.3.6.1
mercurial - update to 5.9.1-150400.3.6.1
mercurial (Debian package) - update to 6.3.2-1+deb12u1
mercurial-chg - update to 6.9.4-1
mercurial-doc - update to 6.9.4-1
mercurial - update to 6.9.4-1
mercurial-hgk - update to 6.9.4-1

External References

Related Security Bulletins