mercurial — security advisory
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.
- Products
- mercurial
- Affected 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, 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, 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, 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, 5.6.1-4, 5.6.1-4build1, 5.9.3-1, 6.0-1, 6.0.1-1, 6.1.1-1ubuntu1, 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, 6.9.4-1, 7.0.1-2, 7.1.1-1ubuntu1, 7.2-3, 7.2-3build1, 7.2.4-1ubuntu1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-2361
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:25 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2025-2361
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
mercurial
Fixed versions: Not specified
Complete source record
{
"id": "68698863ad152a8b37de8a6a228131f4a67ffd53e8bae42ba5a41ea23084e291",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-2361",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-2361",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2025-2361",
"products": [
{
"name": {
"value": "mercurial",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.8.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "2.8.2-1ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "2.8.2-1ubuntu1.3",
"evidence": "/affected/0/versions"
},
{
"value": "2.8.2-1ubuntu1.4",
"evidence": "/affected/0/versions"
},
{
"value": "2.8.2-1ubuntu1.4+esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4-1ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "3.6.2-1ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.3-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.3-1ubuntu1.1",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.3-1ubuntu1.2",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.3-1ubuntu1.2+esm2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.3.1-2",
"evidence": "/affected/2/versions"
},
{
"value": "4.5-1ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "4.5.2-0ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "4.5.3-1ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "4.5.3-1ubuntu2.1",
"evidence": "/affected/2/versions"
},
{
"value": "4.5.3-1ubuntu2.1+esm2",
"evidence": "/affected/2/versions"
},
{
"value": "4.5.3-1ubuntu2.2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.8.2-1ubuntu4",
"evidence": "/affected/3/versions"
},
{
"value": "4.8.2-1ubuntu5",
"evidence": "/affected/3/versions"
},
{
"value": "5.2.1-1",
"evidence": "/affected/3/versions"
},
{
"value": "5.2.2-1ubuntu2",
"evidence": "/affected/3/versions"
},
{
"value": "5.2.2-1ubuntu3",
"evidence": "/affected/3/versions"
},
{
"value": "5.2.2-1ubuntu4",
"evidence": "/affected/3/versions"
},
{
"value": "5.3.1-1ubuntu1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.6.1-4",
"evidence": "/affected/4/versions"
},
{
"value": "5.6.1-4build1",
"evidence": "/affected/4/versions"
},
{
"value": "5.9.3-1",
"evidence": "/affected/4/versions"
},
{
"value": "6.0-1",
"evidence": "/affected/4/versions"
},
{
"value": "6.0.1-1",
"evidence": "/affected/4/versions"
},
{
"value": "6.1.1-1ubuntu1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.4.4-2",
"evidence": "/affected/5/versions"
},
{
"value": "6.5.2-2ubuntu3",
"evidence": "/affected/5/versions"
},
{
"value": "6.5.3-1",
"evidence": "/affected/5/versions"
},
{
"value": "6.6.1-2",
"evidence": "/affected/5/versions"
},
{
"value": "6.7.2-1ubuntu2",
"evidence": "/affected/5/versions"
},
{
"value": "6.7.2-1ubuntu2.2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.4-1",
"evidence": "/affected/6/versions"
},
{
"value": "7.0.1-2",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.2-3build1",
"evidence": "/affected/7/versions"
},
{
"value": "7.2.4-1ubuntu1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "mercurial",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.0.1-2",
"evidence": "/affected/8/versions"
},
{
"value": "7.1.1-1ubuntu1",
"evidence": "/affected/8/versions"
},
{
"value": "7.2-3",
"evidence": "/affected/8/versions"
},
{
"value": "7.2-3build1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2025-2361",
"aliases": [
"UBUNTU-CVE-2025-2361"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "2.8.2-1ubuntu1.4+esm1"
},
{
"binary_name": "mercurial-common",
"binary_version": "2.8.2-1ubuntu1.4+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "3.7.3-1ubuntu1.2+esm2"
},
{
"binary_name": "mercurial-common",
"binary_version": "3.7.3-1ubuntu1.2+esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "4.5.3-1ubuntu2.2"
},
{
"binary_name": "mercurial-common",
"binary_version": "4.5.3-1ubuntu2.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "5.3.1-1ubuntu1"
},
{
"binary_name": "mercurial-common",
"binary_version": "5.3.1-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"5.6.1-4",
"5.6.1-4build1",
"5.9.3-1",
"6.0-1",
"6.0.1-1",
"6.1.1-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "6.1.1-1ubuntu1"
},
{
"binary_name": "mercurial-common",
"binary_version": "6.1.1-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "6.7.2-1ubuntu2.2"
},
{
"binary_name": "mercurial-common",
"binary_version": "6.7.2-1ubuntu2.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"6.9.4-1",
"7.0.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "7.0.1-2"
},
{
"binary_name": "mercurial-common",
"binary_version": "7.0.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"7.2-3build1",
"7.2.4-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "7.2.4-1ubuntu1"
},
{
"binary_name": "mercurial-common",
"binary_version": "7.2.4-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mercurial",
"purl": "pkg:deb/ubuntu/mercurial?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"7.0.1-2",
"7.1.1-1ubuntu1",
"7.2-3",
"7.2-3build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2361.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "mercurial",
"binary_version": "7.2-3build1"
},
{
"binary_name": "mercurial-common",
"binary_version": "7.2-3build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:48.927422976Z",
"provider": "osv",
"upstream": [
"CVE-2025-2361"
],
"references": [
"https://ubuntu.com/security/CVE-2025-2361",
"https://www.cve.org/CVERecord?id=CVE-2025-2361",
"https://vuldb.com/?ctiid.299860",
"https://vuldb.com/?id.299860",
"https://vuldb.com/?submit.514024"
]
},
"related_cves": [
{
"value": "CVE-2025-2361",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 356362,
"published_at": "2025-03-17T05:15:00+00:00"
}