CVE-2026-38651: Github.com/gravitl/netmaker Netmaker Does Not Verify JWT Vulnerability

CRITICAL
Advisory Identifier: GHSA-qpv2-rwc8-c993
CVSS 8.2
CWE-347
Published
Advisory Summary

CVE-2026-38651 is a CRITICAL (CVSS 8.2) netmaker does not verify jwt vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/gravitl/netmaker libraries in the Go ecosystem. The issue involves netmaker does not verify jwt signatures for host tokens. Remediation is available by upgrading affected packages to version 1.5.0.

CVE-2026-38651 at a Glance

CVE Identifier CVE-2026-38651
GHSA Identifier GHSA-qpv2-rwc8-c993
Severity CRITICAL
CVSS v3.1 Base Score 8.2
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Github.com/gravitl/netmaker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-38651

To remediate this vulnerability, upgrade all affected Github.com/gravitl/netmaker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/gravitl/netmaker fixed: 1.5.0
Upgrade github.com/gravitl/netmaker to 1.5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/gravitl/netmaker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-38651, inspect your project dependencies for Github.com/gravitl/netmaker:

inspect dependencies for github.com/gravitl/netmaker

Analyze the terminal output to locate any version of Github.com/gravitl/netmaker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Github.com/gravitl/netmaker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Netmaker by Gravitl is an open-source WireGuard-based networking platform for creating and managing virtual overlay networks. The `VerifyHostToken` function in `logic/jwts.go` does not validate the JWT signature when verifying host tokens. After calling `jwt.ParseWithClaims`, the function only checks whether the returned token object is non-nil. It does not check `token.Valid` or the returned error. An attacker can forge a JWT signed with any key, set the claims to any host ID, and pull that host's full configuration including bcrypt-hashed passwords, MQTT credentials, and WireGuard peer data. The issue was patched in v1.5.0.

CVE-2026-38651 Affected Github.com/gravitl/netmaker Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gravitl/netmaker
Go
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2026-38651?
CVE-2026-38651 is a security vulnerability in Github.com/gravitl/netmaker involving Netmaker does not verify JWT signatures for host tokens under CWE-347: Improper Verification of Cryptographic Signature.
Which Github.com/gravitl/netmaker versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: github.com/gravitl/netmaker.
What version fixes CVE-2026-38651?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gravitl/netmaker affected?
Yes, github.com/gravitl/netmaker is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What is the CVSS score of CVE-2026-38651?
CVE-2026-38651 has a CVSS v3.1 base score of 8.2 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-38651?
CVE-2026-38651 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Go dependencies for CVE-2026-38651?
Run the dependency tree command: 'inspect dependencies for github.com/gravitl/netmaker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qpv2-rwc8-c993",
  "modified" : "2026-05-05T14:45:55Z",
  "published" : "2026-04-28T18:30:33Z",
  "aliases" : [ "CVE-2026-38651" ],
  "summary" : "Netmaker does not verify JWT signatures for host tokens",
  "details" : "Netmaker by Gravitl is an open-source WireGuard-based networking platform for creating and managing virtual overlay networks. The `VerifyHostToken` function in `logic/jwts.go` does not validate the JWT signature when verifying host tokens. After calling `jwt.ParseWithClaims`, the function only checks whether the returned token object is non-nil. It does not check `token.Valid` or the returned error. An attacker can forge a JWT signed with any key, set the claims to any host ID, and pull that host's full configuration including bcrypt-hashed passwords, MQTT credentials, and WireGuard peer data. The issue was patched in v1.5.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitl/netmaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-38651"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/commit/5309aa70d464ef565911369714d661a61481a79b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gravitl/netmaker"
  }, {
    "type" : "WEB",
    "url" : "https://www.zyenra.com/advisories/netmaker-jwt-verification-bypass"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T14:45:55Z",
    "nvd_published_at" : "2026-04-28T16:16:13Z"
  }
}