{"id":"GHSA-qpv2-rwc8-c993","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.","aliases":["CVE-2026-38651","GO-2026-5588"],"modified":"2026-06-25T23:11:06.416639971Z","published":"2026-04-28T18:30:33Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-05-05T14:45:55Z","nvd_published_at":"2026-04-28T16:16:13Z","cwe_ids":["CWE-347"]},"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"}],"affected":[{"package":{"name":"github.com/gravitl/netmaker","ecosystem":"Go","purl":"pkg:golang/github.com/gravitl/netmaker"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qpv2-rwc8-c993/GHSA-qpv2-rwc8-c993.json"}}],"schema_version":"1.9.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"}]}