---
id: CVE-2026-54586
title: mport is the MidnightBSD Package Manager
summary: >-
  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_h…
severity: medium
cvss: 6
cvssVector: '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'
cwe:
  - CWE-319
  - CWE-345
vendor: MidnightBSD
product: mport
affected:
  - mport < 2.7.8
published: '2026-09-17'
updated: '2026-09-21'
sourceUpdated: '2026-09-21T21:17:04.840'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54586'
references:
  - url: >-
      https://github.com/MidnightBSD/mport/commit/9b4d0f9192b243ee32266afa36dce430b257b921
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/pull/121'
    label: security-advisories@github.com
  - url: 'https://github.com/MidnightBSD/mport/releases/tag/2.7.8'
    label: security-advisories@github.com
  - url: >-
      https://github.com/MidnightBSD/mport/security/advisories/GHSA-v5pv-7gxw-74r5
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-21T20:57:25.913923Z'
cvssSource: cna
epss: 0.00134
epssPercentile: 0.03272
ingestedAt: '2026-09-17T17:23:30.630Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
