{"id":"UBUNTU-CVE-2025-2361","details":"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.","modified":"2026-05-20T16:20:54.902874204Z","published":"2025-03-17T05:15:00Z","upstream":["CVE-2025-2361"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-2361"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-2361"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.299860"},{"type":"REPORT","url":"https://vuldb.com/?id.299860"},{"type":"REPORT","url":"https://vuldb.com/?submit.514024"}],"affected":[{"package":{"name":"mercurial","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.3-1","2.7.2-1","2.8.1-2","2.8.2-1ubuntu1","2.8.2-1ubuntu1.3","2.8.2-1ubuntu1.4","2.8.2-1ubuntu1.4+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.2-1ubuntu1.4+esm1","binary_name":"mercurial"},{"binary_version":"2.8.2-1ubuntu1.4+esm1","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4-1ubuntu2","3.6.2-1ubuntu2","3.7.3-1ubuntu1","3.7.3-1ubuntu1.1","3.7.3-1ubuntu1.2","3.7.3-1ubuntu1.2+esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.7.3-1ubuntu1.2+esm2","binary_name":"mercurial"},{"binary_version":"3.7.3-1ubuntu1.2+esm2","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.1-2","4.5-1ubuntu1","4.5.2-0ubuntu2","4.5.3-1ubuntu2","4.5.3-1ubuntu2.1","4.5.3-1ubuntu2.1+esm2","4.5.3-1ubuntu2.2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.5.3-1ubuntu2.2","binary_name":"mercurial"},{"binary_version":"4.5.3-1ubuntu2.2","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2-1ubuntu4","4.8.2-1ubuntu5","5.2.1-1","5.2.2-1ubuntu2","5.2.2-1ubuntu3","5.2.2-1ubuntu4","5.3.1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.3.1-1ubuntu1","binary_name":"mercurial"},{"binary_version":"5.3.1-1ubuntu1","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.1-4","5.6.1-4build1","5.9.3-1","6.0-1","6.0.1-1","6.1.1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.1.1-1ubuntu1","binary_name":"mercurial"},{"binary_version":"6.1.1-1ubuntu1","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.4.4-2","6.5.2-2ubuntu3","6.5.3-1","6.6.1-2","6.7.2-1ubuntu2","6.7.2-1ubuntu2.2"],"ecosystem_specific":{"binaries":[{"binary_version":"6.7.2-1ubuntu2.2","binary_name":"mercurial"},{"binary_version":"6.7.2-1ubuntu2.2","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.4-1","7.0.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"7.0.1-2","binary_name":"mercurial"},{"binary_version":"7.0.1-2","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mercurial?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0.1-2","7.1.1-1ubuntu1","7.2-3","7.2-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.2-3build1","binary_name":"mercurial"},{"binary_version":"7.2-3build1","binary_name":"mercurial-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}