# CVE-2026-79785: X-AnyLabeling before 4.0.0-beta.9 Improper Certificate Validation in Model Downloads

> Attackers can intercept model downloads to inject malicious files, leading to code execution or manipulated annotations in X-AnyLabeling.

- **Severity:** High 8.2 (`CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 25 Aug 2026
- **Updated:** 29 Aug 2026
- **Also known as:** GHSA-xmcj-8jmg-p5pr

## What is CVE-2026-79785?

CVE-2026-79785 is a high-severity vulnerability in CVHub520 X-AnyLabeling, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

X-AnyLabeling's model downloader disabled TLS certificate verification. download_with_retry in anylabeling/services/auto_labeling/model.py built a context with ssl._create_unverified_context() and passed it to urllib.request.urlopen, so neither the certificate chain nor the hostname was checked on any model download, and models are fetched over HTTPS from the project's release host. Any party positioned to intercept that connection could therefore answer it with content of their own choosing. The response is written to a .part file and moved into place with os.replace, and the only post-download check, safe_check_model, validates the file's format rather than its provenance: no hash or signature is compared against an expected value. For an ONNX target the substituted file passes onnx.checker.check_model and is then used for inference, so the attacker chooses the model that produces the application's annotations. For a .pth or .pt target, which the shipped SAM2 video, YOLOE, UPN and open_vision configurations use, the check worker calls torch.load without weights_only, so a substituted file is unpickled and executes code of the attacker's choosing on PyTorch releases predating the weights_only default.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2026-79785?


## How do I fix CVE-2026-79785?

No fix has been published for CVE-2026-79785 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-79785 being exploited?

There is no known exploitation of CVE-2026-79785 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-79785 and fix it if it is affected.

What it is: CVE-2026-79785 is a high-severity vulnerability in CVHub520 X-AnyLabeling, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-79785 in the wild and no public exploit code.

Affected product: CVHub520 X-AnyLabeling. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-79785/ (Markdown: https://insights.sbomify.com/CVE-2026-79785/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-79785
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-79785
- OSV: https://osv.dev/vulnerability/CVE-2026-79785

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-79785/
Summaries are generated and may contain mistakes; the official description above is the record.
