Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

yopass is a service for securely sharing secrets, passwords, and files. Prior to version 14.7.0, the Prometheus metrics middleware in pkg/server/server.go uses the attacker-controlled r.Method value directly as the method label for yopass_http_requests_total and yopass_http_request_duration_seconds. Because the catch-all route accepts arbitrary HTTP method tokens, an unauthenticated remote attacker can submit many unique methods and create metric series that the Prometheus registry never evicts. The resulting monotonic memory growth can OOM-kill the process, while the expanding registry also degrades /metrics scrape latency and can blind monitoring. This issue is fixed in version 14.7.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-107840
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:46 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 9 Oct 2026, 18:08 UTC

yopass is a service for securely sharing secrets, passwords, and files. Prior to version 14.7.0, the Prometheus metrics middleware in pkg/server/server.go uses the attacker-controlled r.Method value directly as the method label for yopass_http_requests_total and yopass_http_request_duration_seconds. Because the catch-all route accepts arbitrary HTTP method tokens, an unauthenticated remote attacker can submit many unique methods and create metric series that the Prometheus registry never evicts. The resulting monotonic memory growth can OOM-kill the process, while the expanding registry also degrades /metrics scrape latency and can blind monitoring. This issue is fixed in version 14.7.0.

osv:CVE-2026-107840
Complete source record
{
  "id": "d316d75708e7a70d7e082cd7b0c0007f35c4d44447957240e9dedc950716bde6",
  "url": "https://osv.dev/vulnerability/CVE-2026-107840",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "yopass Prometheus metrics middleware allows remote memory exhaustion through unbounded method labels",
    "summary": "yopass is a service for securely sharing secrets, passwords, and files. Prior to version 14.7.0, the Prometheus metrics middleware in pkg/server/server.go uses the attacker-controlled r.Method value directly as the method label for yopass_http_requests_total and yopass_http_request_duration_seconds. Because the catch-all route accepts arbitrary HTTP method tokens, an unauthenticated remote attacker can submit many unique methods and create metric series that the Prometheus registry never evicts. The resulting monotonic memory growth can OOM-kill the process, while the expanding registry also degrades /metrics scrape latency and can blind monitoring. This issue is fixed in version 14.7.0.",
    "evidence": "osv:CVE-2026-107840",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-107840",
      "aliases": [
        "CVE-2026-107840",
        "GHSA-6r69-c6wg-7g8m",
        "GO-2026-6720"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jhaals/yopass",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1be19519ad6ac0bf0011272c03a53b46db760d79"
                },
                {
                  "fixed": "61e31ead04a4fc27ce80bed226af41c7c0426ccf"
                },
                {
                  "fixed": "78d0c14f7085048130199662a2ec8a18ec8d6ebb"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "14.7.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "61e31ead04a4fc27ce80bed226af41c7c0426ccf"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "78d0c14f7085048130199662a2ec8a18ec8d6ebb"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1be19519ad6ac0bf0011272c03a53b46db760d79"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "14.7.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "14.6.0",
            "14.5.0",
            "14.4.0",
            "14.3.0",
            "14.2.0",
            "14.1.1",
            "14.1.0",
            "14.0.0",
            "13.1.0",
            "13.0.0",
            "12.5.0",
            "12.4.0",
            "12.3.0",
            "12.2.0",
            "12.1.0",
            "12.0.0",
            "11.20.0",
            "11.19.1",
            "11.19.0",
            "11.18.0",
            "11.17.0",
            "11.16.0",
            "11.15.1",
            "11.15.0",
            "11.5.1",
            "11.5.0",
            "11.4.6",
            "11.4.5",
            "11.4.4",
            "11.14.4",
            "11.4.3",
            "11.4.2",
            "11.4.1",
            "11.3.1",
            "11.3.0",
            "11.2.0",
            "11.1.2",
            "11.1.1",
            "11.1.0",
            "11.0.0",
            "10.2.0",
            "10.1.0",
            "10.0.0",
            "9.0.0",
            "8.2.0",
            "8.1.0",
            "8.0.3",
            "8.0.2",
            "8.0.1",
            "8.0.0",
            "7.0.0",
            "6.2.0",
            "6.1.0",
            "6.0.2",
            "6.0.1",
            "6.0.0",
            "5.0.2",
            "5.0.1",
            "5.0.0",
            "4.1.0",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "4.0.2",
            "4.0.1",
            "4.0.0",
            "3.0.7",
            "3.0.6",
            "3.0.5",
            "3.0.4",
            "3.0.3",
            "3.0.2",
            "3.0.1",
            "3.0.0",
            "2.2.2",
            "2.2.0",
            "1.1.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107840.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.693172803Z",
      "provider": "osv",
      "references": [
        "https://github.com/jhaals/yopass/releases/tag/14.7.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107840.json",
        "https://github.com/jhaals/yopass/security/advisories/GHSA-6r69-c6wg-7g8m",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-107840",
        "https://github.com/jhaals/yopass/commit/61e31ead04a4fc27ce80bed226af41c7c0426ccf",
        "https://github.com/jhaals/yopass/commit/78d0c14f7085048130199662a2ec8a18ec8d6ebb",
        "https://github.com/jhaals/yopass/pull/3773"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107840.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-107840",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499764,
  "published_at": "2026-10-09T18:08:29.059+00:00"
}