Vulnerabilities in pkg:golang/github.com/goharbor/harbor

PACKAGE
Advisory Summary

GHSA-prh4-vhfh-24mj is a MODERATE ldap password and oidc secret vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Harbor libraries in the Go ecosystem. The issue involves ldap password and oidc secret are not redacted in the audit log. Remediation is available by upgrading affected packages to version 2.13.5, 2.14.3.

23 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/goharbor/harbor

23 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/goharbor/harbor. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-prh4-vhfh-24mj - MODERATE Harbor: LDAP password and OIDC secret are not redacted in the audit log
GHSA-hj7x-hmf2-hc2p CVE-2026-4404 CRITICAL Harbor allows the use of the default password for web UI login
GHSA-h27m-3qw8-3pw8 CVE-2025-30086 MODERATE Possible ORM Leak Vulnerability in the Harbor
GHSA-f9vc-vf3r-pqqq CVE-2025-32019 MODERATE Harbor repository description page has Cross-site Scripting vulnerability
GHSA-5757-v49g-f6r7 CVE-2024-22244 MODERATE Open Redirect URL in Harbor
GHSA-r864-28pw-8682 CVE-2022-31668 HIGH Harbor fails to validate the user permissions when updating p2p preheat policies
GHSA-q76q-q8hw-hmpw CVE-2022-31671 MODERATE Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs
GHSA-xx9w-464f-7h6f CVE-2022-31667 MODERATE Harbor fails to validate the user permissions when updating a robot account
GHSA-8c6p-v837-77f6 CVE-2022-31669 MODERATE Harbor fails to validate the user permissions when updating tag immutability policies
GHSA-3637-v6vq-xqqw CVE-2022-31670 HIGH Harbor fails to validate the user permissions when updating tag retention policies
GHSA-hw28-333w-qxp3 CVE-2024-22278 HIGH Harbor fails to validate the user permissions when updating project configurations
GHSA-jf8p-3vjh-pq94 CVE-2022-31666 HIGH Harbor fails to validate the user permissions when viewing Webhook policies
GHSA-rffr-c932-cpxv CVE-2019-19025 HIGH Cross-site Request Forgery (CSRF) in Cloud Native Computing Foundation Harbor
GHSA-jr34-mff8-pc6f CVE-2019-19029 HIGH SQL Injection in Cloud Native Computing Foundation Harbor
GHSA-vw63-824v-qf2j CVE-2024-22261 LOW SQL Injection in Harbor scan log API
GHSA-mq6f-5xh5-hgcf CVE-2023-20902 MODERATE Harbor timing attack risk
GHSA-q9x4-q76f-5h5j CVE-2019-19030 MODERATE Unauthenticated users can exploit an enumeration vulnerability in Harbor (CVE-2019-19030)
GHSA-q9p8-33wc-h432 CVE-2020-13794 MODERATE Authenticated users can exploit an enumeration vulnerability in Harbor
GHSA-38r5-34mr-mvm7 CVE-2020-29662 MODERATE "catalog's registry v2 api exposed on unauthenticated path in Harbor"
GHSA-33p6-fx42-7rf5 CVE-2020-13788 LOW Harbor is vulnerable to a limited Server-Side Request Forgery (SSRF) (CVE-2020-13788)
GHSA-9wvh-ff5f-xjpj CVE-2019-16097 MODERATE Missing Authorization in Harbor
GHSA-w4x5-jqq4-qc8x CVE-2019-19026 MODERATE SQL Injection in Cloud Native Computing Foundation Harbor
GHSA-q6cj-6jvq-jwmh CVE-2019-19023 MODERATE Privilege Escalation in Cloud Native Computing Foundation Harbor

GHSA-prh4-vhfh-24mj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-prh4-vhfh-24mj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Harbor
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-prh4-vhfh-24mj

To remediate this vulnerability, upgrade all affected Harbor 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/goharbor/harbor fixed: 2.13.5
Upgrade github.com/goharbor/harbor to 2.13.5
github.com/goharbor/harbor fixed: 2.14.3
Upgrade github.com/goharbor/harbor to 2.14.3
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/goharbor/harbor

How to Check if You Are Affected

To determine whether your application is affected by GHSA-prh4-vhfh-24mj, inspect your project dependencies for Harbor:

inspect dependencies for github.com/goharbor/harbor

Analyze the terminal output to locate any version of Harbor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.13.5), 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-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Harbor, 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

### Impact Harbor write configuration payload to audit log when configuration change, the ldap_search_password and oidc_client_secret will be logged in the audit log without redacted ### Patches Harbor v2.15.0, v2.14.3, v2.13.5 ### Workarounds Disable audit log configure event in Harbor Web Console: Go to Administration -> Configuration -> Enable Audit Log Event Type -> Uncheck "Update Configuration" and click "Save" Button.

GHSA-prh4-vhfh-24mj Affected Harbor Versions

2 component(s)
Fixed Versions:
2.13.52.14.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/goharbor/harbor
Go
≥ 2.13.0
< 2.13.5
2.13.5
github.com/goharbor/harbor
Go
≥ 2.14.0
< 2.14.3
2.14.3

References

Frequently Asked Questions

What is GHSA-prh4-vhfh-24mj?
GHSA-prh4-vhfh-24mj is a security vulnerability in Harbor involving LDAP password and OIDC secret are not redacted in the audit log under CWE-312: Cleartext Storage of Sensitive Information.
Which Harbor versions are affected?
Affected versions include releases prior to 2.13.5, 2.14.3 across affected packages: github.com/goharbor/harbor.
What version fixes GHSA-prh4-vhfh-24mj?
Upgrading to 2.13.5, 2.14.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/goharbor/harbor affected?
Yes, github.com/goharbor/harbor is affected in releases prior to 2.13.5, 2.14.3. Upgrade your dependency to 2.13.5, 2.14.3 or later.
What CWE is associated with GHSA-prh4-vhfh-24mj?
GHSA-prh4-vhfh-24mj is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Go dependencies for GHSA-prh4-vhfh-24mj?
Run the dependency tree command: 'inspect dependencies for github.com/goharbor/harbor'. 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-prh4-vhfh-24mj",
  "modified" : "2026-03-26T22:25:26Z",
  "published" : "2026-03-26T22:25:26Z",
  "aliases" : [ ],
  "summary" : "Harbor: LDAP password and OIDC secret are not redacted in the audit log",
  "details" : "### Impact\nHarbor write configuration payload to audit log when configuration change, the ldap_search_password and oidc_client_secret will be logged in the audit log without redacted\n\n### Patches\nHarbor v2.15.0, v2.14.3, v2.13.5\n\n### Workarounds\nDisable audit log configure event in Harbor Web Console: Go to Administration -> Configuration -> Enable Audit Log Event Type -> Uncheck \"Update Configuration\" and click \"Save\" Button.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.13.0"
      }, {
        "fixed" : "2.13.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.14.0"
      }, {
        "fixed" : "2.14.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/security/advisories/GHSA-prh4-vhfh-24mj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/commit/85e756486fc19333c5c300d7ac273e1580dc9350"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/goharbor/harbor"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-312", "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-26T22:25:26Z",
    "nvd_published_at" : null
  }
}