Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113682 Overview
CVE-2026-113682 is an authentication bypass vulnerability in the Networknt light-4j framework affecting versions from 2.1.5 before 2.4.0. The flaw resides in BasicAuthHandler, which delegates credential validation to an LDAP or Active Directory backend. When an attacker sends a Basic Authorization header containing a known username and an empty password, the backend performs an unauthenticated LDAP bind. The framework interprets the bind response as a successful authentication, granting the attacker access as the targeted user. The weakness is classified under CWE-287: Improper Authentication.
Critical Impact
Unauthenticated remote attackers can log in as any LDAP or AD-delegated user by submitting a Basic Auth header with an empty password, bypassing authentication entirely.
Affected Products
- Networknt light-4j 2.1.5 through 2.3.7
- light-4j basic-auth module with LDAP-delegated authentication
- light-4j ldap-util module (fixed in 2.4.0)
Discovery Timeline
- 2026-10-20 - CVE-2026-113682 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113682
Vulnerability Analysis
The BasicAuthHandler in light-4j extracts the username and password from the HTTP Authorization: Basic header and forwards them to LdapUtil for verification. LdapUtil constructs a JNDI InitialDirContext using the submitted credentials and attempts an LDAP bind against the configured directory server. The handler relies solely on the absence of an exception to determine authentication success.
This logic conflates two distinct LDAP operations: an authenticated bind and an unauthenticated bind. RFC 4513 specifies that an LDAP bind with a valid distinguished name and an empty password string is an unauthenticated bind, which many directory servers accept without validating credentials. Because the handler does not reject empty passwords before invoking the bind, attackers can authenticate as any user whose DN can be resolved from a known username.
Root Cause
The root cause is missing input validation on the password field within the LDAP authentication path. Neither BasicAuthHandler nor LdapUtil enforces a minimum password length or rejects empty credentials before issuing the bind. The vulnerable code paths are documented in BasicAuthHandler.java lines 189-200 and LdapUtil.java lines 152-173.
Attack Vector
An attacker needs network access to an API protected by light-4j BasicAuthHandler and knowledge of a valid username. The attacker sends an HTTP request with a Basic Authorization header encoding username: (empty password). The server performs an unauthenticated LDAP bind, which returns success, and the request is processed as the targeted user. No prior credentials, tokens, or user interaction are required.
// Patch excerpt - ldap-util/src/main/java/com/networknt/ldap/LdapConfig.java
package com.networknt.ldap;
import com.networknt.config.Config;
+import com.networknt.config.ConfigException;
import com.networknt.config.schema.ConfigSchema;
+import com.networknt.config.schema.IntegerField;
import com.networknt.config.schema.OutputFormat;
import com.networknt.config.schema.StringField;
import com.networknt.server.ModuleRegistry;
Source: GitHub commit 54743bad. The patch adds configuration schema fields and tightens LDAP connection handling as part of the fix merged via Pull Request #2805.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-113682
Indicators of Compromise
- HTTP requests to light-4j endpoints containing an Authorization: Basic header where the base64-decoded value ends in a colon with no password (e.g., username:).
- LDAP server audit logs showing successful bind operations with empty password fields originating from the light-4j application host.
- Successful authentications from source IPs or user agents that have never previously authenticated to the API.
Detection Strategies
- Decode and inspect Authorization: Basic headers at the reverse proxy or WAF layer and alert on empty password components.
- Correlate LDAP bind events with the unauthenticated result code against application access logs to identify abuse of this path.
- Hunt for successful API calls to light-4j services where the authenticated principal does not match any recent interactive login in identity logs.
Monitoring Recommendations
- Enable verbose LDAP audit logging on the directory server and forward events to a central SIEM for correlation.
- Monitor light-4j application logs for anomalous spikes in BasicAuthHandler success events tied to high-value service accounts.
- Alert on repeated authentication attempts enumerating usernames with empty passwords, which indicate pre-exploitation reconnaissance.
How to Mitigate CVE-2026-113682
Immediate Actions Required
- Upgrade Networknt light-4j to version 2.4.0 or later, available at the light-4j 2.4.0 release.
- Inventory all services that embed the basic-auth and ldap-util modules and prioritize patching internet-exposed instances.
- Rotate credentials for any accounts that may have been accessed through the vulnerable authentication path.
Patch Information
The fix is delivered in light-4j 2.4.0 via commit 54743bad, merged through Pull Request #2805 in response to Issue #2804. Additional context is published in the VulnCheck advisory for light-4j.
Workarounds
- Deploy a reverse proxy or WAF rule that rejects any HTTP request whose decoded Basic Authorization header contains an empty password field.
- Configure the LDAP or Active Directory server to reject unauthenticated binds, forcing all bind requests to validate credentials.
- Temporarily disable LDAP-delegated authentication in BasicAuthHandler and require token-based authentication until the upgrade is deployed.
# Example NGINX rule to block empty-password Basic Auth
# Decodes the Authorization header and drops requests ending in ':'
if ($http_authorization ~* "^Basic\s+([A-Za-z0-9+/=]+)$") {
set $auth_b64 $1;
}
# Use a Lua or njs filter to base64-decode $auth_b64 and
# return 401 when the decoded value matches /^[^:]+:$/
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

