Vulnerabilities in pkg:golang/github.com/hyperledger/fabric-ca

PACKAGE
Advisory Identifier: GHSA-xghw-p77p-3r7x
Advisory Summary

CVE-2026-53658 is a MODERATE ldap injection vulnerability (CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')) affecting Fabric CA Developer's Guide libraries in the Go ecosystem. The issue involves ldap injection via unescaped username in getuser filter. Remediation is available by upgrading affected packages to version 1.5.21.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/hyperledger/fabric-ca

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/hyperledger/fabric-ca. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xghw-p77p-3r7x CVE-2026-53658 MODERATE Fabric CA Developer's Guide: LDAP Injection via Unescaped Username in GetUser Filter

CVE-2026-53658 at a Glance

CVE Identifier CVE-2026-53658
GHSA Identifier GHSA-xghw-p77p-3r7x
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
Affected Product Fabric CA Developer's Guide
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-53658

To remediate this vulnerability, upgrade all affected Fabric CA Developer's Guide dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/hyperledger/fabric-ca fixed: 1.5.21
Upgrade github.com/hyperledger/fabric-ca to 1.5.21
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/hyperledger/fabric-ca

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-53658, inspect your project dependencies for Fabric CA Developer's Guide:

inspect dependencies for github.com/hyperledger/fabric-ca

Analyze the terminal output to locate any version of Fabric CA Developer's Guide in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.21), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

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 Fabric CA Developer's Guide, 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

When fabric-ca is configured with an LDAP backend, the username from HTTP Basic authentication is included in an LDAP uid search filter without proper escaping. An unauthenticated attacker with network access to the CA enrollment endpoint could exploit this to perform LDAP injection before password validation, and potentially steer authentication attempts toward a victim account. ### Recommendation - All users of fabric-ca with an LDAP backend should update to a fixed version. - For users not using an LDAP backend, no action is required.

CVE-2026-53658 Affected Fabric CA Developer's Guide Versions

1 component(s)
Fixed Versions:
1.5.21
Product / Package Ecosystem Affected Versions Fixed Version
github.com/hyperledger/fabric-ca
Go
< 1.5.21
1.5.21

References

Frequently Asked Questions

What is CVE-2026-53658?
CVE-2026-53658 is a security vulnerability in Fabric CA Developer's Guide involving LDAP Injection via Unescaped Username in GetUser Filter under CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection').
Which Fabric CA Developer's Guide versions are affected?
Affected versions include releases prior to 1.5.21 across affected packages: github.com/hyperledger/fabric-ca.
What version fixes CVE-2026-53658?
Upgrading to 1.5.21 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/hyperledger/fabric-ca affected?
Yes, github.com/hyperledger/fabric-ca is affected in releases prior to 1.5.21. Upgrade your dependency to 1.5.21 or later.
What CWE is associated with CVE-2026-53658?
CVE-2026-53658 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 Go dependencies for CVE-2026-53658?
Run the dependency tree command: 'inspect dependencies for github.com/hyperledger/fabric-ca'. 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-xghw-p77p-3r7x",
  "modified" : "2026-08-14T19:24:57Z",
  "published" : "2026-08-14T19:24:57Z",
  "aliases" : [ "CVE-2026-53658" ],
  "summary" : "Fabric CA Developer's Guide: LDAP Injection via Unescaped Username in GetUser Filter",
  "details" : "When fabric-ca is configured with an LDAP backend, the username from HTTP Basic authentication is included in an LDAP uid search filter without proper escaping. An unauthenticated attacker with network access to the CA enrollment endpoint could exploit this to perform LDAP injection before password validation, and potentially steer authentication attempts toward a victim account.\n\n### Recommendation\n\n- All users of fabric-ca with an LDAP backend should update to a fixed version.\n- For users not using an LDAP backend, no action is required.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/hyperledger/fabric-ca"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.21"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.5.20"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hyperledger/fabric-ca/security/advisories/GHSA-xghw-p77p-3r7x"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hyperledger/fabric-ca/commit/d379df823534d56dec0166a6da8f0415e3beee24"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hyperledger/fabric-ca"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-90" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-14T19:24:57Z",
    "nvd_published_at" : null
  }
}