Disclosure 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 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.
Source-reported weakness categories
CWE-400
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-6r69-c6wg-7g8m
Open original source · Updated Oct 09, 2026
yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels
Source severity: HIGH / 0
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| go | github.com/jhaals/yopass | < 0.0.0-20260727191436-61e31ead04a4 | 0.0.0-20260727191436-61e31ead04a4 |
NIST National Vulnerability Database · NVD-CVE-2026-107840
Open original source · Updated Oct 09, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
Original records & references
PUBLISHED 2026-10-09T14:17:05-04:00
MODIFIED 2026-10-09T16:17:09-04:00
INGESTED 2026-10-10T20:55:12-04:00