CVE-2026-107840
High 7.5 P4 · Monitor (16/100)yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels
Confirmed facts from the sources
- CVSS
- 7.5 (High) · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by github - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.79 % · percentile 53.0 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- Fix available
- Monitored technologies
- Prometheus
Description (source)
The Prometheus metrics middleware in pkg/server/server.go used r.Method directly as a label value on request counter and duration histogram metrics. Since the mux catch-all route matches any HTTP method, an unauthenticated attacker can send requests with arbitrary method strings (e.g. curl -X "M1" http://host/), each creating new counter and histogram time series in the Prometheus registry. The registry's internal maps never evict entries. An attacker issuing requests with unique method values causes monotonic memory growth until the process is OOM-killed. Additionally, /metrics scrape latency degrades proportionally, eventually timing out and blinding monitoring. Remediation: Upgrade to 14.7.0 or later, which clamps the method label to a fixed allowlist (GET, POST, PUT, DELETE, OPTIONS, HEAD, CONNECT, TRACE) and maps everything else to other.
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| go: github.com/jhaals/yopass | < 0.0.0-20260727191436-61e31ead04a4 | 0.0.0-20260727191436-61e31ead04a4 | github |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
Fixed versions: github.com/jhaals/yopass 0.0.0-20260727191436-61e31ead04a4
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (16/100)
- Estimated exploitation probability 0.79 % (EPSS, percentile 53 %) – an estimate, not confirmation (+0)
- Technical severity: CVSS 7.5 (HIGH) – on its own not a reason for top priority (+12)
- Linked to a monitored technology only by its description (+4)
- Fix available – plan the update (+0)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://github.com/advisories/GHSA-6r69-c6wg-7g8m · github
- Reference https://github.com/jhaals/yopass/security/advisories/GHSA-6r69-c6wg-7g8m · github
- Reference https://nvd.nist.gov/vuln/detail/CVE-2026-107840 · github
- Reference https://github.com/jhaals/yopass/pull/3773 · github
- Reference https://github.com/jhaals/yopass/commit/61e31ead04a4fc27ce80bed226af41c7c0426ccf · github
- Reference https://github.com/jhaals/yopass/commit/78d0c14f7085048130199662a2ec8a18ec8d6ebb · github
- Reference https://github.com/jhaals/yopass/releases/tag/14.7.0 · github