Vulnerability · Published Oct 9, 2026 · Assigned by GitHub_M

CVE-2026-107840yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels

High 7.5

In plain English

A high-severity uncontrolled resource consumption in yopass from jhaals. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 61.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/jhaals/yopass0.0.0-20260727191436-61e31ead04a4GHSA-6r69-c6wg-7g8m
Gogithub.com/jhaals/yopass0.0.0-20260727191436-61e31ead04a4GO-2026-6720

Affected products (as reported)

VendorProductVersions
jhaals yopass < 14.7.0

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References