Vulnerability GHSA-6r69-c6wg-7g8m

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
3 hours ago
October 09, 2026 at 08:42 PM UTC
yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels
<0.0.0-20260727191436-61e31ead04a4
<0.0.0-20260727191436-61e31ead04a4

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.

Impacted packages

Timeline

Published
3 hours ago
October 09, 2026 at 08:42 PM UTC
Last Modified
3 hours ago
October 09, 2026 at 09:00 PM UTC