All reports
Critical

Netmaker does not verify JWT signatures for host tokens

Affected versions

Version ranges need review.

Affected versions
< 1.5.0
Fixed version
1.5.0
Affected versions
<1.5.0
Fixed version
1.5.0

Exploitation

CVE-2026-38651

Probability of exploitation in the next 30 days: 0.35%

FIRST EPSS · 2026-11-18

Description

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.

Links

Credits

  • rvzsec