# Mercurial Improper Certificate Validation vulnerability

Advisory record · `GHSA-7gf7-7wx4-mxmw`

- **Identifiers:** `GHSA-7gf7-7wx4-mxmw` · `CVE-2010-4237` · `PYSEC-2026-665`
- **State:** Confirmed
- **Severity:** CVSS 5.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-295](https://cwe.mitre.org/data/definitions/295.html)
- **Tags:** [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 21 Apr 2022
- **Updated:** 6 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Apr 2022, 01:57 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `mercurial` (PyPI): affected `<1.6.4`; fixed in `1.6.4`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.9 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0082, the 57th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 21 Apr 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-7gf7-7wx4-mxmw](https://github.com/advisories/GHSA-7gf7-7wx4-mxmw)
- [OSV: GHSA-7gf7-7wx4-mxmw](https://osv.dev/vulnerability/GHSA-7gf7-7wx4-mxmw)
- <https://nvd.nist.gov/vuln/detail/CVE-2010-4237>
- <https://github.com/dscho/hg/commit/4ea63fb25ceeeaaa4cd1026f733b7ea7672c30b3>
- <https://github.com/dscho/hg/commit/89baabf4fb7abf30ef6fdcf3d455a7893e5cc145>
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598841>
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4237>
- <https://bz.mercurial-scm.org/show_bug.cgi?id=2407>
- <https://repo.mercurial-scm.org/hg/rev/6ab4a7d3c179>
- <https://repo.mercurial-scm.org/hg/rev/f2937d6492c5>
- <https://security-tracker.debian.org/tracker/CVE-2010-4237>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-7gf7-7wx4-mxmw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-7gf7-7wx4-mxmw/>. Everything for agents: <https://agentprime.io/llms.txt>.
