Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-68925

CVE-2025-68925: Jervis JWT Algorithm Verification Flaw

CVE-2025-68925 is a JWT header validation flaw in Jervis library for Jenkins that fails to verify the algorithm specification. This post covers the security risk, technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-68925 Overview

CVE-2025-68925 is a cryptographic vulnerability in Jervis, a library used for Job DSL plugin scripts and shared Jenkins pipeline libraries. Prior to version 2.2, the Jervis library fails to properly validate that the JWT (JSON Web Token) header specifies the expected "alg":"RS256" algorithm. This vulnerability allows attackers to potentially bypass signature verification by manipulating the algorithm specified in the JWT header, a classic JWT algorithm confusion attack.

Critical Impact

Attackers may forge authentication tokens by exploiting the missing JWT algorithm validation, potentially gaining unauthorized access to Jenkins pipelines and CI/CD workflows.

Affected Products

  • Jervis library versions prior to 2.2
  • Jenkins environments using vulnerable Jervis versions for Job DSL plugin scripts
  • Jenkins pipeline libraries integrating unpatched Jervis components

Discovery Timeline

  • 2026-01-13 - CVE CVE-2025-68925 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2025-68925

Vulnerability Analysis

This vulnerability falls under CWE-347 (Improper Verification of Cryptographic Signature). The core issue stems from the Jervis library's failure to enforce strict algorithm validation when processing JWT tokens. JWT tokens contain a header that specifies which cryptographic algorithm should be used for signature verification. When a library does not validate this algorithm field, it becomes susceptible to algorithm confusion attacks.

In a typical RS256-based JWT implementation, the server uses an RSA public key to verify signatures created with the corresponding private key. However, if the algorithm validation is missing, an attacker can potentially change the algorithm in the JWT header to HS256 (HMAC-SHA256) and sign the token using the public key as the HMAC secret. Since the public key is often publicly available, this effectively allows token forgery.

The vulnerability is network-accessible and requires no user interaction or special privileges to exploit, making it a concern for any Jenkins environment utilizing the affected Jervis versions.

Root Cause

The root cause is the absence of explicit validation logic to ensure that incoming JWT tokens specify RS256 as the signing algorithm. The code path that processes JWT headers accepted any algorithm value without verification, trusting the client-provided algorithm rather than enforcing server-side expectations. This design flaw allows attackers to dictate which algorithm the server uses for signature verification.

Attack Vector

The attack leverages the network-accessible nature of Jenkins pipelines using Jervis. An attacker can craft a malicious JWT token with a manipulated algorithm header:

  1. The attacker obtains the public RSA key used by the target Jervis implementation (often publicly accessible)
  2. The attacker creates a forged JWT payload with desired claims
  3. The attacker changes the JWT header algorithm from RS256 to HS256
  4. The attacker signs the token using the public key as the HMAC secret
  5. The vulnerable Jervis library accepts the forged token, granting unauthorized access

The vulnerability exploitation does not require authentication and can be performed remotely over the network. Technical details and the specific code changes addressing this issue can be found in the GitHub Security Advisory GHSA-5pq9-5mpr-jj85.

Detection Methods for CVE-2025-68925

Indicators of Compromise

  • Unusual JWT tokens in authentication logs with unexpected algorithm values in the header (e.g., HS256 instead of expected RS256)
  • Authentication events from unexpected sources or with anomalous timing patterns
  • Pipeline executions or Job DSL script modifications by unauthorized users
  • Increased failed authentication attempts followed by successful ones with different token characteristics

Detection Strategies

  • Implement JWT header inspection at the application or WAF layer to flag tokens not using RS256
  • Deploy monitoring rules to detect algorithm confusion patterns in authentication traffic
  • Review Jenkins audit logs for unauthorized pipeline modifications or Job DSL script changes
  • Perform dependency scanning to identify Jervis library versions below 2.2

Monitoring Recommendations

  • Enable comprehensive logging for all JWT-based authentication events in Jenkins
  • Configure alerts for authentication anomalies in CI/CD pipeline access patterns
  • Monitor network traffic to Jenkins instances for unusual authentication request patterns
  • Implement Software Composition Analysis (SCA) tools to continuously track Jervis library versions across your environment

How to Mitigate CVE-2025-68925

Immediate Actions Required

  • Upgrade Jervis library to version 2.2 or later immediately
  • Review Jenkins pipeline access logs for any signs of unauthorized access or suspicious token usage
  • Rotate any secrets or credentials that may have been exposed through affected Jenkins pipelines
  • Temporarily restrict network access to Jenkins instances if immediate patching is not possible

Patch Information

The vulnerability is fixed in Jervis version 2.2. The fix implements proper validation to ensure that JWT headers explicitly specify "alg":"RS256" before processing tokens. The security patch can be reviewed in the GitHub Commit. Organizations should update their Jervis dependencies to version 2.2 or higher through their standard dependency management processes.

Workarounds

  • Implement network-level access controls to restrict who can send JWT tokens to Jenkins instances
  • Deploy a reverse proxy or Web Application Firewall (WAF) that validates JWT algorithm headers before forwarding requests
  • Consider disabling JWT-based authentication temporarily in favor of alternative authentication mechanisms until patching is complete
  • Implement additional authentication layers such as IP allowlisting for sensitive Jenkins operations
bash
# Verify current Jervis version and update
# Check Gradle dependencies
grep -r "jervis" build.gradle

# Update to patched version in build.gradle
# dependencies {
#     implementation 'net.gleske:jervis:2.2'
# }

# For Maven projects, update pom.xml
# <dependency>
#     <groupId>net.gleske</groupId>
#     <artifactId>jervis</artifactId>
#     <version>2.2</version>
# </dependency>

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechJervis

  • SeverityMEDIUM

  • CVSS Score6.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-5pq9-5mpr-jj85
  • Related CVEs
  • CVE-2025-68702: Jervis Library Hash Padding Vulnerability

  • CVE-2025-68701: Jervis Library Cryptographic Vulnerability

  • CVE-2025-68698: Jervis Library Padding Oracle Vulnerability

  • CVE-2025-68931: Jervis Library Encryption Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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