Skip to content

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

HighCVSS 7.5 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
jhaals github.com/jhaals/yopass(Go) < 0.0.0-20260727191436-61e31ead04a4 0.0.0-20260727191436-61e31ead04a4 Fixed
jhaals github.com/jhaals/yopass = < 14.7.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
jhaals github.com/jhaals/yopass(Go) < 0.0.0-20260727191436-61e31ead04a4 0.0.0-20260727191436-61e31ead04a4
jhaals github.com/jhaals/yopass = < 14.7.0 No fix listed

References