Vulnerabilities in pkg:npm/ldapauth-fork

PACKAGE
Advisory Identifier: GHSA-82mg-x548-gq3j
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/ldapauth-fork

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/ldapauth-fork. 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

CVE Identifier CVE-2015-7294
GHSA Identifier GHSA-82mg-x548-gq3j
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
Affected Product Ldapauth fork
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

ldapauth-fork fixed: 2.3.3
npm install ldapauth-fork@2.3.3
ldapauth fixed: Latest secure release
npm install ldapauth@Latest secure release
Verify Direct and Transitive Dependencies

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

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. ## Recommendation ldapauth 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.

CVE-2015-7294 Affected Ldapauth fork Versions

2 component(s)
Fixed Versions:
2.3.3
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?
CVE-2015-7294 is a security vulnerability in Ldapauth fork involving LDAP Injection in ldapauth under CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection').
Which Ldapauth fork versions are affected?
Affected versions include releases prior to 2.3.3 across affected packages: ldapauth-fork, ldapauth.
What version fixes CVE-2015-7294?
Upgrading to 2.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ldapauth-fork affected?
Yes, ldapauth-fork is affected in releases prior to 2.3.3. Upgrade your dependency to 2.3.3 or later.
Is ldapauth affected?
Yes, ldapauth is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2015-7294?
CVE-2015-7294 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2015-7294?
CVE-2015-7294 is classified under CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') (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.).
How can I check npm dependencies for CVE-2015-7294?
Run the dependency tree command: 'npm ls ldapauth-fork'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}