---
id: CVE-2026-107840
title: 'yopass is a service for securely sharing secrets, passwords, and files'
summary: >-
  yopass is a service for securely sharing secrets, passwords, and files. Prior
  to version 14.7.0, the Prometheus metrics middleware in pkg/server/server.go
  uses the attacker-controlled r.Method value directly as the method label for
  yopas…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-400
vendor: jhaals
product: github.com/jhaals/yopass
affected:
  - github.com/jhaals/yopass < 0.0.0-20260727191436-61e31ead04a4
patched:
  - github.com/jhaals/yopass 0.0.0-20260727191436-61e31ead04a4
published: '2026-10-09'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T20:17:09.900'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107840'
references:
  - url: >-
      https://github.com/jhaals/yopass/commit/61e31ead04a4fc27ce80bed226af41c7c0426ccf
    label: security-advisories@github.com
  - url: >-
      https://github.com/jhaals/yopass/commit/78d0c14f7085048130199662a2ec8a18ec8d6ebb
    label: security-advisories@github.com
  - url: 'https://github.com/jhaals/yopass/pull/3773'
    label: security-advisories@github.com
  - url: 'https://github.com/jhaals/yopass/releases/tag/14.7.0'
    label: security-advisories@github.com
  - url: 'https://github.com/jhaals/yopass/security/advisories/GHSA-6r69-c6wg-7g8m'
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107840'
  - url: 'https://github.com/advisories/GHSA-6r69-c6wg-7g8m'
tags:
  - nvd
  - ghsa
  - go
aliases:
  - GHSA-6r69-c6wg-7g8m
ecosystem: go
ingestedAt: '2026-10-09T19:09:33.756Z'
---

## Overview

yopass is a service for securely sharing secrets, passwords, and files. Prior to version 14.7.0, the Prometheus metrics middleware in pkg/server/server.go uses the attacker-controlled r.Method value directly as the method label for yopass_http_requests_total and yopass_http_request_duration_seconds. Because the catch-all route accepts arbitrary HTTP method tokens, an unauthenticated remote attacker can submit many unique methods and create metric series that the Prometheus registry never evicts. The resulting monotonic memory growth can OOM-kill the process, while the expanding registry also degrades /metrics scrape latency and can blind monitoring. This issue is fixed in version 14.7.0.

## Remediation

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

## Package advisory (CVE-2026-107840)

Affected packages:

- `github.com/jhaals/yopass < 0.0.0-20260727191436-61e31ead04a4`

Patched in:

- `github.com/jhaals/yopass 0.0.0-20260727191436-61e31ead04a4`

Source: https://github.com/advisories/GHSA-6r69-c6wg-7g8m
