Thursday, September 10, 2026

Critical pac4j-jwt Authentication Bypass Vulnerability Allows Attackers to Impersonate Any User

A critical security flaw in the popular Java authentication library pac4j-jwt allows attackers to completely bypass authentication and impersonate any user, including administrators.

Tracked as CVE-2026-29000, this vulnerability carries a maximum CVSS score of 10.0 and requires nothing more than the server’s public RSA key to successfully exploit.​

Their automated tools and security engineers found that a remote attacker could forge a JSON Web Token (JWT) with arbitrary claims.

This completely dodges the essential signature verification process without needing access to any private keys, passwords, or shared secrets.​

The vulnerability was discovered by the CodeAnt AI Security Research Team while they were investigating open-source code patches.

How the Authentication Bypass Works

To understand the exploit, it helps to know how pac4j-jwt normally secures tokens. Standard secure deployments use two layers of defence: encryption to keep the token data private, and a cryptographic signature to prove the token is genuinely authentic.​

When the server receives a token from a user, it first decrypts the outer layer. Then, it checks the inner signature.

Authentication Bypass (Source: CodeAntAI)
Authentication Bypass (Source: CodeAntAI)

However, the researchers found a fatal flaw in how the system handles tokens that intentionally lack a signature altogether.

If a hacker crafts an unsigned token, technically known as a PlainJWT, and encrypts it using the server’s publicly available key, the underlying library fails to parse it as a signed object. This results in a null value during the token processing phase.​

Because of a simple, misplaced null check in the application code, the entire signature verification block is silently skipped.

Instead of rejecting the invalid token, the system simply moves forward and reads the unverified claims.

This means an attacker can write “admin” in their forged token, encrypt it with the public key, and instantly gain high-level access.

The server blindly trusts the encrypted data without ever confirming who actually created it.​

Immediate Remediation and System Patching

This severe flaw specifically impacts deployments that use RSA-encrypted tokens alongside the JwtAuthenticator configuration.

Thankfully, the open-source community moved incredibly fast to resolve the problem.

Maintainer Jérôme Leleu responded to the private disclosure immediately, confirming the issue and publishing fully working patches across multiple software versions within just two business days.​

If your application relies on pac4j-jwt, you must update your software dependencies immediately to secure your systems against this bypass.

Users on the 4.x release line need to upgrade to version 4.5.9 or newer. Those operating on the 5.x branch should update to 5.7.9 or newer. Finally, users on the 6.x line must upgrade to 6.3.3 or newer to remain safe.​

Security analysts can verify their exposure by checking their package managers for vulnerable versions.

They should also scan their application code for instances where both encryption and signature configurations are actively applied to the authenticator.

Follow us on Google NewsLinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

OpenMatter Network Realigns Leadership Team to Accelerate Global Commercial Growth

Melbourne, Florida, September 10th, 2026, CyberNewswire With its Verification Architecture...

Hackers Can Turn Vulnerable LiteLLM AI Gateways Into Root Access and Cloud Credential Theft

Nearly one in 10 internet-exposed LiteLLM AI gateways accepted...

Skullcandy Dime 3 Bluetooth Flaw Lets Nearby Attackers Hijack Audio and Microphone

Skullcandy Dime 3 wireless earbuds have a serious vulnerability...

Hackers Steal Active Directory Password Hashes Without Attacking Domain Controllers Directly

Threat actors are increasingly exploiting Active Directory replication mechanisms...

Fake GTA 6 Installer Steals Browser Passwords, Discord Tokens and Crypto Data From Gamers

Threat actors are exploiting anticipation around Grand Theft Auto...

Apple Xcode Integer Underflow Flaw Lets Crafted Archives Leak Memory and Crash Builds

A recently disclosed integer-underflow vulnerability in Apple’s modern Mach-O...

Palo Alto PAN-OS Buffer Overflow Lets Attackers Execute Arbitrary Code as Root

Palo Alto Networks has announced a high-severity buffer overflow...

New Phishing Attack Uses Blob URLs to Hide Malicious Pages From Security Scanners

A phishing campaign that moves the credential-harvesting page out...

Related Articles

Recent News