---
title: Mercurial 7.2.6 fixes flaws that chain to code execution on clients and servers
description: >-
  Resolved. Mercurial 7.2.6, released on 3 Dec 2026, fixes four flaws (HG-SA-2026-001 to 004) that
  can be combined to run code on a client that clones, pulls or...
url: https://expiredqueues.com/security-advisories/mercurial-7-2-6/
markdown: https://expiredqueues.com/security-advisories/mercurial-7-2-6/index.md
image: https://expiredqueues.com/images/og/security-advisories-mercurial-7-2-6-590ed58f.jpg
---

[Security advisories](https://expiredqueues.com/security-advisories/index.md)

# Mercurial 7.2.6 fixes flaws that chain to code execution on clients and servers

First listed 4 December 2026 Updated 4 December 2026

Resolved

Mercurial 7.2.6, released on 3 Dec 2026, fixes four flaws (HG-SA-2026-001 to 004) that can be combined to run code on a client that clones, pulls or applies patches from an untrusted repository, and on a server that untrusted users can push to. They include writes outside the working copy through .hg/ paths and symlinks, an integrity check bypass through cache poisoning, and configuration injection through a malformed .hgsub file. No CVE IDs or exploitation reported.

## Is it exploited?

No attacks reported as of 4 December 2026.

## Is there a fix?

Yes. A fix is out. The details are in [the source](https://mercurial-scm.org/news/2026/0009-release-7.2.6).

- **Vendor:** Mercurial
- **Type:** Critical
- **Status:** Resolved. No exploitation reported.
- **Tags:** mercurial, [Python](https://expiredqueues.com/security-advisories/stack/python/index.md)
- **History:**
  - 4 December 2026 First listed. Mercurial 7.2.6 critical security release of 3 Dec 2026, four advisories HG-SA-2026-001 to 004.

[Read the source](https://mercurial-scm.org/news/2026/0009-release-7.2.6)

## More sources

- [seclists.org/oss-sec/2026/q4/999](https://seclists.org/oss-sec/2026/q4/999)

## Related advisories

- [DevGating malicious PyPI packages hide malware until a developer runs them](https://expiredqueues.com/security-advisories/devgating-pypi-2026-12/index.md)
- [Django 6.1.4, 6.0.11 and 5.2.20 fix GeoDjango file write and SQL injection (CVE-2026-124827)](https://expiredqueues.com/security-advisories/django-cve-2026-124827/index.md)
- [Amazon says a China-linked actor used the Cairn AI tool to find a probable zero-day](https://expiredqueues.com/security-advisories/amazon-cairn-ai-zero-day-2026-11/index.md)
- [pip bundles compromised eMudhra certificates (CVE-2026-133949)](https://expiredqueues.com/security-advisories/emudhra-pip-cve-2026-133949/index.md)
- [LiteLLM custom-code guardrail sandbox escape (CVE-2026-40217)](https://expiredqueues.com/security-advisories/litellm-cve-2026-40217/index.md)

This is one entry in a list I pick by hand. It tells you whether a fix exists. For how to apply it, follow the source. [See all advisories](https://expiredqueues.com/security-advisories/index.md).

**Follow Enqueue Magazine.** We are on X and Instagram.

[](https://x.com/enqueuemag "Enqueue Magazine on X (@enqueuemag)")[](https://www.instagram.com/enqueuemag/ "Enqueue Magazine on Instagram (@enqueuemag)")

## Structured data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Article",
      "headline": "Mercurial 7.2.6 fixes flaws that chain to code execution on clients and servers",
      "description": "Mercurial 7.2.6, released on 3 Dec 2026, fixes four flaws (HG-SA-2026-001 to 004) that can be combined to run code on a client that clones, pulls or applies patches from an untrusted repository, and on a server that untrusted users can push to. They include writes outside the working copy through .hg/ paths and symlinks, an integrity check bypass through cache poisoning, and configuration injection through a malformed .hgsub file. No CVE IDs or exploitation reported.",
      "datePublished": "2026-12-04",
      "dateModified": "2026-12-04",
      "author": {
        "@type": "Person",
        "name": "Adrian Noel",
        "url": "https://expiredqueues.com/about/"
      },
      "publisher": {
        "@type": "Person",
        "name": "Adrian Noel"
      },
      "mainEntityOfPage": "https://expiredqueues.com/security-advisories/mercurial-7-2-6/",
      "isPartOf": {
        "@type": "CollectionPage",
        "@id": "https://expiredqueues.com/security-advisories/"
      },
      "about": "Mercurial",
      "citation": "https://mercurial-scm.org/news/2026/0009-release-7.2.6"
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://expiredqueues.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Security advisories",
          "item": "https://expiredqueues.com/security-advisories/"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Mercurial 7.2.6 fixes flaws that chain to code execution on clients and servers",
          "item": "https://expiredqueues.com/security-advisories/mercurial-7-2-6/"
        }
      ]
    }
  ]
}
```
