GHSA-6r69-c6wg-7g8m

Suggest an improvement
Source
https://github.com/advisories/GHSA-6r69-c6wg-7g8m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6r69-c6wg-7g8m/GHSA-6r69-c6wg-7g8m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6r69-c6wg-7g8m
Aliases
Published
2026-10-09T20:42:58Z
Modified
2026-10-09T21:00:08Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-09T20:42:58Z",
    "nvd_published_at": "2026-10-09T18:17:05Z",
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/jhaals/yopass

Package

Name
github.com/jhaals/yopass
View open source insights on deps.dev
Purl
pkg:golang/github.com/jhaals/yopass

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20260727191436-61e31ead04a4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6r69-c6wg-7g8m/GHSA-6r69-c6wg-7g8m.json"