All vulnerabilities
CVE-2026-107840GHSA-6r69-c6wg-7g8mGO-2026-6720

github.com/jhaals/yopass: yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels

jhaals github.com/jhaals/yopassgoLibraries & packages
CVSS
7.5High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.44%Chance of exploitation activity in the next 30 days, higher than 37% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in0.0.0-20260727191436-61e31ead04a4Fixed versionGitHub
Published9 Oct 2026Updated 19 Oct 2026CVE List

What fixes it

  • 0.0.0-20260727191436-61e31ead04a4github.com/jhaals/yopass, goGitHubgo get github.com/jhaals/yopass@v0.0.0-20260727191436-61e31ead04a4
  • 0.0.0-20260727191436-61e31ead04a4github.com/jhaals/yopass, GoOSVgo get github.com/jhaals/yopass@v0.0.0-20260727191436-61e31ead04a4

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

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.

Text from GitHub Advisory Database

Affected versions 3

  • github.com/jhaals/yopass, go< 0.0.0-20260727191436-61e31ead04a4GitHub
  • yopassaffected: < 14.7.0CVE List
  • github.com/jhaals/yopass, Gofrom first release, fixed in 0.0.0-20260727191436-61e31ead04a4OSV

References 7