VYPR
High severityNVD Advisory· Published Feb 11, 2021· Updated Sep 16, 2024

LDAP Injection

CVE-2021-23335

Description

All versions of the is-user-valid npm package are vulnerable to LDAP injection, enabling authentication bypass or information exposure.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

All versions of the is-user-valid npm package are vulnerable to LDAP injection, enabling authentication bypass or information exposure.

Vulnerability

Overview The package is-user-valid, a simple service for checking user validity in LDAP, is vulnerable to LDAP injection in all versions [1][2]. The vulnerability stems from improper sanitization of user input before it is used to construct LDAP queries, allowing an attacker to inject arbitrary LDAP directives.

Attack

Vector and Exploitation An attacker can exploit this by sending crafted user input to the application's authentication or user validation endpoint. No special privileges are needed; the attacker only needs network access to a service using this library. The injected LDAP statements modify the intended query logic.

Impact

Successful LDAP injection can lead to authentication bypass, allowing an attacker to log in as any user without knowing their credentials, or to information exposure by manipulating queries to retrieve sensitive directory data [1][2].

Mitigation

Status As of the latest disclosure, there is no fixed version for the is-user-valid package [2]. The recommended action is to avoid using the package or to implement proper input validation and parameterized LDAP queries as a workaround.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
is-user-validnpm
<= 1.1.2

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.