yopass metrics middleware lets remote attackers exhaust memory
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
yopass, a service for securely sharing secrets, passwords, and files, is affected before version 14.7.0. Its Prometheus metrics middleware uses the attacker-controlled HTTP method as a metric label, so each unique method name creates a series the registry never removes. An unauthenticated remote attacker can send many unique methods to the catch-all route, causing uncontrolled resource consumption that can exhaust memory and kill the process (CWE-400). The growing registry also slows /metrics scrapes and can blind monitoring.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jhaals | yopass | before 14.7.0 | 14.7.0 | Patch available | CNA |
| — | github.com/jhaals/yopass (Go) | before 0.0.0-20260727191436-61e31ead04a4 | 0.0.0-20260727191436-61e31ead04a4 | Patch available | GHSA-6r69-c6wg-7g8m |
- yopass Vendorjhaals Affected before 14.7.0 Fixed in 14.7.0 Patch available CNA
- github.com/jhaals/yopass (Go) Vendor— Affected before 0.0.0-20260727191436-61e31ead04a4 Fixed in 0.0.0-20260727191436-61e31ead04a4 Patch available GHSA-6r69-c6wg-7g8m
Remediation
Upgrade yopass to version 14.7.0. The Go module github.com/jhaals/yopass is fixed in version 0.0.0-20260727191436-61e31ead04a4. Red Hat marks one product as not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
- Fix · CNA yopass (jhaals) Fixed in 14.7.0
- Fix · GHSA-6r69-c6wg-7g8m github.com/jhaals/yopass (Go) Fixed in 0.0.0-20260727191436-61e31ead04a4 Advisory →
Vendor assessments
Timeline
- 2026-10-10 Threatist record created from CVE-2026-107840
- 2026-10-10 Alias added: GHSA-6r69-c6wg-7g8m
- 2026-10-10 Fix available: Go/github.com/jhaals/[email protected] · GHSA-6r69-c6wg-7g8m
- 2026-10-10 CVSS score added · GHSA-6r69-c6wg-7g8m
- 2026-10-10 Weakness changed · GHSA-6r69-c6wg-7g8m
- 2026-10-10 7 new references · GHSA-6r69-c6wg-7g8m
- 2026-11-06 Affected versions changed · Red Hat
- 2026-11-06 CVSS score added · Red Hat
References
Other 6
- 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
- https://github.com/jhaals/yopass
Sources
- CVE-2026-107840 · CVE Program
- CVE-2026-107840 · NVD
- FIRST EPSS
- GHSA-6r69-c6wg-7g8m · GitHub Advisory Database · CC BY 4.0
- CVE-2026-107840 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences