A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-38651

CVE-2026-38651: Netmaker Auth Bypass Vulnerability

CVE-2026-38651 is an authentication bypass flaw in Netmaker versions prior to 1.5.0 that allows attackers to forge JWT tokens and impersonate any host. This post covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-38651 Overview

An Authentication Bypass vulnerability exists in Netmaker versions prior to 1.5.0. The VerifyHostToken function in logic/jwts.go fails to validate the JWT signature when verifying host tokens. An attacker can forge a JWT signed with any arbitrary key and use it to impersonate any host in the network, gaining access to sensitive information.

Critical Impact

This vulnerability allows remote attackers to forge JWT tokens and impersonate any host on the network without authentication, potentially compromising the entire network infrastructure managed by Netmaker.

Affected Products

  • Netmaker versions prior to 1.5.0
  • Netmaker deployments using JWT-based host authentication
  • Network environments relying on Netmaker for mesh networking

Discovery Timeline

  • 2026-04-28 - CVE CVE-2026-38651 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-38651

Vulnerability Analysis

This vulnerability falls under CWE-347 (Improper Verification of Cryptographic Signature). The core issue lies in the VerifyHostToken function within logic/jwts.go, which parses JWT tokens but fails to verify whether the token's signature is actually valid before trusting its claims.

When the JWT library parses a token, it returns a token object regardless of signature validity—the signature validation result is stored in the token.Valid boolean field. The vulnerable code only checked if the token object was non-nil (token != nil) before extracting and returning the claims, completely bypassing the cryptographic signature verification that should protect against token forgery.

This architectural flaw means an attacker can craft a JWT with arbitrary claims (including spoofed host identity information) signed with any key of their choosing, and the server will accept it as legitimate.

Root Cause

The root cause is the missing validation check for token.Valid in the JWT verification logic. The original code in logic/jwts.go contained the following conditional:

go
if token != nil {
    return claims.ID, claims.MacAddress, claims.Network, nil
}

This check only verifies that the token was successfully parsed, not that its cryptographic signature was validated against the server's secret key. The JWT library's ParseWithClaims function sets token.Valid to true only when the signature verification succeeds, but this field was never checked.

Attack Vector

This vulnerability is exploitable over the network without any authentication or user interaction. An attacker can exploit this vulnerability through the following attack flow:

  1. Craft a malicious JWT containing claims for any target host identity
  2. Sign the JWT with any arbitrary key (the signature will not be validated)
  3. Send API requests to the Netmaker server using the forged token
  4. Successfully impersonate the target host and access sensitive network configuration data

The patched code properly validates the JWT signature:

go
// Patched version from logic/jwts.go
// Source: https://github.com/gravitl/netmaker/commit/5309aa70d464ef565911369714d661a61481a79b

 	// this may be a stupid way of serving up a master key
 	// TODO: look into a different method. Encryption?
 	if tokenString == servercfg.GetMasterKey() && servercfg.GetMasterKey() != "" {
-		return "mastermac", "", "", nil
+		return MasterUser, "", "", nil
 	}

 	token, err := jwt.ParseWithClaims(tokenString, claims, func(token *jwt.Token) (interface{}, error) {
 		return jwtSecretKey, nil
 	})

-	if token != nil {
+	if token != nil && token.Valid {
 		return claims.ID, claims.MacAddress, claims.Network, nil
 	}
 	return "", "", "", err

Additionally, the host authorization middleware was updated in controllers/hosts.go:

go
// Patched version from controllers/hosts.go
// Source: https://github.com/gravitl/netmaker/commit/5309aa70d464ef565911369714d661a61481a79b

 	r.HandleFunc("/api/hosts/{hostid}", logic.SecurityCheck(true, http.HandlerFunc(updateHost))).
 		Methods(http.MethodPut)
-	r.HandleFunc("/api/hosts/{hostid}", Authorize(true, false, "all", http.HandlerFunc(deleteHost))).
+	r.HandleFunc("/api/hosts/{hostid}", AuthorizeHost(http.HandlerFunc(deleteHost))).
 		Methods(http.MethodDelete)
 	r.HandleFunc("/api/hosts/{hostid}/upgrade", logic.SecurityCheck(true, http.HandlerFunc(upgradeHost))).
 		Methods(http.MethodPut)

Detection Methods for CVE-2026-38651

Indicators of Compromise

  • Unexpected host registrations or modifications in Netmaker network configurations
  • API requests containing JWT tokens with invalid or anomalous signatures in server logs
  • Multiple hosts attempting to use the same identity credentials
  • Unusual network configuration changes or access patterns from hosts

Detection Strategies

  • Implement JWT signature validation logging to detect tokens that fail signature verification
  • Monitor Netmaker API endpoints for authentication anomalies, particularly the /api/hosts/{hostid} endpoints
  • Analyze server logs for requests with malformed or suspicious JWT structures
  • Deploy network intrusion detection rules to identify JWT authentication bypass attempts

Monitoring Recommendations

  • Enable verbose logging on Netmaker API servers to capture all authentication events
  • Set up alerts for failed JWT signature verifications or authentication anomalies
  • Monitor for unusual host activity patterns that may indicate impersonation
  • Implement regular audits of registered hosts against expected network inventory

How to Mitigate CVE-2026-38651

Immediate Actions Required

  • Upgrade Netmaker to version 1.5.0 or later immediately
  • Review Netmaker server logs for any suspicious authentication activity
  • Audit all registered hosts in your Netmaker deployment for unauthorized entries
  • Rotate JWT secret keys after applying the patch to invalidate any potentially forged tokens

Patch Information

The vulnerability has been addressed in Netmaker version 1.5.0. The fix adds proper JWT signature validation by checking the token.Valid field before trusting token claims. The patch is available in commit 5309aa70d464ef565911369714d661a61481a79b. Additional details are available in the Zyenra Security Advisory and Zyenra Blog Post.

Workarounds

  • Restrict network access to Netmaker API endpoints using firewall rules or network segmentation
  • Implement additional authentication layers (VPN, IP allowlisting) in front of Netmaker services
  • Monitor and alert on all host registration and modification activities until patching is complete
  • Consider temporarily disabling external API access if immediate patching is not possible
bash
# Configuration example - Restrict API access via iptables
# Only allow trusted IP ranges to access Netmaker API
iptables -A INPUT -p tcp --dport 8081 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8081 -j DROP

# Verify current Netmaker version
docker exec netmaker cat /root/netmaker.version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechNetmaker

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • GitHub Commit Update

  • Zyenra Security Advisory

  • Zyenra Blog Post

  • Zyenra Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English