Mercurial 7.2.6: a crafted repo can run code on machines that clone, pull or read its patches (HG-SA-2026-001 to HG-SA-2026-004)
Direct answer
Mercurial 7.2.6: a crafted repo can run code on machines that clone, pull or read its patches (HG-SA-2026-001 to HG-SA-2026-004), also tracked as HG-SA-2026-001 / HG-SA-2026-002 / HG-SA-2026-003 is a critical-severity threat campaign HOL Guard tracked from Nov 30, 2026 to Dec 3, 2026, verified against 4 primary sources and last reviewed Dec 3, 2026. Active tracking has ended and the record remains published as a permanent historical research record.
Also tracked as HG-SA-2026-001 · HG-SA-2026-002 · HG-SA-2026-003 · HG-SA-2026-004
Reviewed threat brief
Historical record
- Primary sources
- 4
- Artifacts
- 1
- Coverage rows
- 1
- Policy rows
- 1
Reviewed defense
Upgrade Mercurial to 7.2.6, or install a distribution package carrying the fixes, because 7.2.6 closes all four flaws and no new upstream releases are planned for older series
Open the starting point- First observed
- Nov 30, 2026
- Last observed
- Dec 3, 2026
- Last reviewed
- Dec 3, 2026
- Tracking ended
- Dec 3, 2026
What happened
The reviewed account of the campaign, preserved in full and paced for reading before the evidence sections.
6 on December 3, 2026 as a critical security release and told all users to upgrade immediately. Four flaws, tracked as HG-SA-2026-001 through HG-SA-2026-004 with no CVE numbers assigned yet, can be combined so a crafted repository or bundle runs code on machines that clone, pull, unbundle or apply patches from a source they do not fully trust, and runs code on servers that untrusted users can push to. 5.
One flaw fires from hg log --patch with nothing checked out. archivesubrepos off and leave it off.
Uncertainty and limitations
Read the evidence limits before acting on this record.
Mercurial reports no exploitation in the wild, and none of the four flaws sits in CISA's Known Exploited Vulnerabilities catalog. No CVE numbers were assigned as of December 3, 2026; the vendor CVE column is blank. HOL did not reproduce the flaws; the account rests on the Mercurial release page, the Mercurial security advisories and the oss-sec announcement.
- Repositories a user and their team fully trust do not expose them; every flaw needs attacker-crafted data (a repository, a bundle or a clone bundle)
- Mercurial used only on a team's own projects, with no outside code pulled in, is outside the client-side risk
- Servers that take pushes only from their own team are outside the server-side risk
- Machines already on Mercurial 7.2.6, or on a distribution package carrying the fixes, are covered
Guard coverage and policy
What Guard's reviewed assertions do and do not claim for this campaign, and the reviewed starting points for defense.
Covered by Guard
provides evidence
The campaign rests on the Mercurial release page, the Mercurial security advisories and the oss-sec announcement as carried in the HOL write-up; HOL did not reproduce the flaws.
- Recipe available
Upgrade Mercurial to 7.2.6, or install a distribution package carrying the fixes, because 7.2.6 closes all four flaws and no new upstream releases are planned for older series
Servers should also turn web.archivesubrepos off and leave it off; an upgrade does not repair archives of untrusted repositories already on disk.
Safe next step. Campaign guidance is defensive context. It does not auto-apply policy or claim universal campaign coverage.
Timeline
Reviewed events, oldest first, each tied to a verified source.
- Update
Mercurial pre-announced the coordinated security release so distributions and hosting providers could prepare fixes.
- Update
Mercurial published the 7.2.6 release page calling it a critical security release, and the HG-SA-2026-001 to 004 advisory entries on its security page.
Sources:Mercurial, Mercurial 7.2.6 released·Mercurial, security advisories (HG-SA-2026-001 to 004)
- Update
Raphaël Gomès announced Mercurial 7.2.6 on the oss-sec mailing list with the four flaw summaries and the upgrade instruction.
Source:Raphaël Gomès, Mercurial 7.2.6 critical security release (oss-sec)
- Update
Mercurial 7.2.6 shipped with fixes for all four flaws; patched distribution packages landed the same day.
- Update
HOL published its operator write-up with the affected versions, the exposure check and the mitigations.
Source:HOL Guard operator write-up
Publication clock: 0.1 hours from reviewed disclosure timestamp to HOL publication; 12-hour critical target; within target.
Reviewed artifacts
The specific artifacts this record concerns, as reviewed. Names and versions are shown as text; a registry link is not recorded here.
Mercurial@All versions affected by at least one flaw; fixed in 7.2.6genericpackage
Sources
Every claim on this record is traceable to the sources below.
- Mercurial, Mercurial 7.2.6 releasedother primary · observed December 3, 2026
- Mercurial, security advisories (HG-SA-2026-001 to 004)other primary · observed December 3, 2026
- Raphaël Gomès, Mercurial 7.2.6 critical security release (oss-sec)other primary · observed December 3, 2026
- HOL Guard operator write-upother primary · observed December 3, 2026
Campaign questions, answered
Mercurial released version 6 on December 3, 2026 as a critical security release and told all users to upgrade immediately. HOL Guard tracked the campaign from Nov 30, 2026 to Dec 3, 2026.
No. Active tracking ended Dec 3, 2026; this page remains as a labeled historical research record and does not imply the threat is currently active.
The record cites 4 primary sources, names 1 reviewed artifact, and was last fully reviewed Dec 3, 2026 by HOL Guard Security Publishing. Its uncertainty and limitations are stated on the record itself.
Campaign guidance is defensive context. It does not auto-apply policy or claim universal campaign coverage. The campaign-specific policy starting point is linked from the coverage section of this record.
The permalink above is permanent. The full record can be downloaded from this page as JSON, an artifact CSV, and a STIX 2.1 bundle, and corrections can be requested through the published correction path on the record. Mercurial reports no exploitation in the wild, and none of the four flaws sits in CISA's Known Exploited Vulnerabilities catalog. No CVE numbers were assigned as of December 3, 2026; the vendor CVE column is blank.
Reviewed in full by HOL Guard Security Publishing.
- Published
- Last full review
- Last modified
Record HGTC-2026-7B9469C3