Vulnerabilities in pkg:npm/ldapauth
PACKAGECVE-2015-7294 is a HIGH (CVSS 7.5) ldap injection vulnerability (CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')) affecting Ldapauth fork libraries in the npm ecosystem. The issue involves ldap injection in ldapauth. Remediation is available by upgrading affected packages to version 2.3.3.
pkg:npm/ldapauth
Vulnerability advisories affecting package pkg:npm/ldapauth. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-82mg-x548-gq3j | CVE-2015-7294 | HIGH | LDAP Injection in ldapauth |
CVE-2015-7294 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2015-7294
To remediate this vulnerability, upgrade all affected Ldapauth fork dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ldapauth-fork@2.3.3
npm install ldapauth@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ldapauth-fork
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-7294, inspect your project dependencies using npm:
npm ls ldapauth-fork
Analyze the terminal output to locate any version of Ldapauth fork in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.3), your application is affected.
Note: The npm ls ldapauth-fork command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection'), where the product constructs all or part of an ldap query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended ldap query when it is sent to a downstream component. In Ldapauth fork, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-7294 Affected Ldapauth fork Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ldapauth-fork
|
npm |
< 2.3.3
|
2.3.3
|
|
ldapauth
|
npm |
|
|
References
Frequently Asked Questions
What is CVE-2015-7294?
Which Ldapauth fork versions are affected?
What version fixes CVE-2015-7294?
Is ldapauth-fork affected?
Is ldapauth affected?
What is the CVSS score of CVE-2015-7294?
What CWE is associated with CVE-2015-7294?
How can I check npm dependencies for CVE-2015-7294?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-82mg-x548-gq3j",
"modified" : "2021-09-23T19:58:02Z",
"published" : "2020-08-31T22:49:46Z",
"aliases" : [ "CVE-2015-7294" ],
"summary" : "LDAP Injection in ldapauth",
"details" : "Versions 2.2.4 and earlier of `ldapauth-fork` are affected by an LDAP injection vulnerability. This allows an attacker to inject and run arbitrary LDAP commands via the username parameter.\n\n\n\n## Recommendation\n\nldapauth is not actively maintained, having not seen a publish since 2014. As a result, there is no patch available. Consider updating to use [ldapauth-fork](https://www.npmjs.com/package/ldapauth-fork) 2.3.3 or greater.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ldapauth-fork"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "ldapauth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.2.4"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7294"
}, {
"type" : "WEB",
"url" : "https://github.com/vesse/node-ldapauth-fork/issues/21"
}, {
"type" : "WEB",
"url" : "https://github.com/vesse/node-ldapauth-fork/commit/3feea43e243698bcaeffa904a7324f4d96df60e4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vesse/node-ldapauth-fork"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/18"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/19"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/09/18/4"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/09/18/8"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/09/21/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-90" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:07:59Z",
"nvd_published_at" : null
}
}