LDAP Injection
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.
| Package | Affected versions | Patched versions |
|---|---|---|
is-user-validnpm | <= 1.1.2 | — |
Affected products
2- is-user-valid/is-user-validdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-22cm-3qf2-2wc7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23335ghsaADVISORY
- snyk.io/vuln/SNYK-JS-ISUSERVALID-1056766ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.