CVE-2026-107840 json
yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels
published 2026-10-09 30 d ago modified 2026-10-19 20 d ago also GHSA-6r69-c6wg-7g8m , GO-2026-6720 , EUVD-2026-95935
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/jhaals/yopass 0.0.0-20260727191436-61e31ead04a4
- github.com/jhaals/yopass@61e31ea commit
- github.com/jhaals/yopass@78d0c14 commit
- github.com/jhaals/yopass#3773 pull request
- github.com/jhaals/yopass/releases/tag/14.7.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-107840 updated cvss 7.5
github.com/jhaals/yopass: yopass: Denial of Service via unbounded memory consumption from arbitrary HTTP methods
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 30 d ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/jhaals/yopass | <0.0.0-20260727191436-61e31ead04a4 |
0.0.0-20260727191436-61e31ead04a4 |
Affected products
- jhaals yopass
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/jhaals/yopass/pull/3773
web, patch
-
github.com
/jhaals/yopass/commit/61e31ead04a4fc27ce80bed226af41c7c0426ccf
web, patch
-
github.com
/jhaals/yopass/commit/78d0c14f7085048130199662a2ec8a18ec8d6ebb
web, patch
-
github.com
/jhaals/yopass/security/advisories/GHSA-6r69-c6wg-7g8m
web, advisory
-
github.com
/jhaals/yopass/releases/tag/14.7.0
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-107840
advisory
-
github.com
/jhaals/yopass
package
Sources
- CVE List CVE-2026-107840
- GitHub Advisory GHSA-6r69-c6wg-7g8m
- NVD CVE-2026-107840
- OSV GO-2026-6720
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.