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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-10-09T18:08:29.059Z
- Modified: 2026-10-19T21:41:22.334Z
- Also known as: GHSA-6r69-c6wg-7g8m, GO-2026-6720
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/jhaals/yopass/security/advisories/GHSA-6r69-c6wg-7g8m> (advisory, web)
- <https://github.com/jhaals/yopass/pull/3773> (fix, web)
- <https://github.com/jhaals/yopass/commit/61e31ead04a4fc27ce80bed226af41c7c0426ccf> (fix, web)
- <https://github.com/jhaals/yopass/commit/78d0c14f7085048130199662a2ec8a18ec8d6ebb> (fix, web)
- <https://github.com/jhaals/yopass/releases/tag/14.7.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107840> (advisory)
- <https://github.com/jhaals/yopass> (package)

## Sources

- CVE List: [CVE-2026-107840](https://www.cve.org/CVERecord?id=CVE-2026-107840), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-6r69-c6wg-7g8m](https://github.com/advisories/GHSA-6r69-c6wg-7g8m), CC-BY-4.0, modified 2026-10-19
- Go Vulnerability Database: [GO-2026-6720](https://pkg.go.dev/vuln/GO-2026-6720), CC-BY-4.0, modified 2026-10-19
- NVD: [CVE-2026-107840](https://nvd.nist.gov/vuln/detail/CVE-2026-107840), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-107840 · Whole record: https://cve.day/CVE-2026-107840.json · Rebuilt by cve.day 2026-11-25T22:59:43.351Z
