Advisory

GHSA-6r69-c6wg-7g8m

Also known as: CVE-2026-107840, GO-2026-6720

Summary

yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-10-09 20:42 UTC
Modified
2026-10-19 21:41 UTC

Affected packages and fixes

github.com/jhaals/yopass

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20260727191436-61e31ead04a4 (semver)

Fixed versions

0.0.0-20260727191436-61e31ead04a4

Fix

  • Fixed version 0.0.0-20260727191436-61e31ead04a4
    go get github.com/jhaals/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences