CVE-2025-32019: Github.com/goharbor/harbor Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-f9vc-vf3r-pqqq
CVSS 4.1
CWE-79
Published
Advisory Summary

CVE-2025-32019 is a MODERATE (CVSS 4.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/goharbor/harbor libraries in the Go ecosystem. The issue involves harbor repository description page has cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 2.12.4-rc1, 2.13.1-rc1, 2.4.0-rc1.0.20250421072404-a13a16383a41.

CVE-2025-32019 at a Glance

CVE Identifier CVE-2025-32019
GHSA Identifier GHSA-f9vc-vf3r-pqqq
Severity MODERATE
CVSS v3.1 Base Score 4.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Github.com/goharbor/harbor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-32019

To remediate this vulnerability, upgrade all affected Github.com/goharbor/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.12.4-rc1
Upgrade github.com/goharbor/harbor to 2.12.4-rc1
github.com/goharbor/harbor fixed: 2.13.1-rc1
Upgrade github.com/goharbor/harbor to 2.13.1-rc1
github.com/goharbor/harbor fixed: Latest secure release
Upgrade github.com/goharbor/harbor to Latest secure release
github.com/goharbor/harbor fixed: 2.4.0-rc1.0.20250421072404-a13a16383a41
Upgrade github.com/goharbor/harbor to 2.4.0-rc1.0.20250421072404-a13a16383a41
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 CVE-2025-32019, inspect your project dependencies for Github.com/goharbor/harbor:

inspect dependencies for github.com/goharbor/harbor

Analyze the terminal output to locate any version of Github.com/goharbor/harbor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12.4-rc1), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/goharbor/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 In the Harbor repository information, it is possible to inject code resulting in a stored XSS issue. ### Patches Harbor v2.12.3 Harbor 2.11.3 ### Workarounds No ### References ### Credit gleb.razvitie@gmail.com

CVE-2025-32019 Affected Github.com/goharbor/harbor Versions

4 component(s)
Fixed Versions:
2.12.4-rc12.13.1-rc12.4.0-rc1.0.20250421072404-a13a16383a41
Product / Package Ecosystem Affected Versions Fixed Version
github.com/goharbor/harbor
Go
≥ 2.12.0-rc1
< 2.12.4-rc1
2.12.4-rc1
github.com/goharbor/harbor
Go
≥ 2.13.0-rc1
< 2.13.1-rc1
2.13.1-rc1
github.com/goharbor/harbor
Go
≥ 2.4.0-rc1.1
≤ 2.11.2
github.com/goharbor/harbor
Go
< 2.4.0-rc1.0.20250421072404-a13a16383a41
2.4.0-rc1.0.20250421072404-a13a16383a41

References

Frequently Asked Questions

What is CVE-2025-32019?
CVE-2025-32019 is a security vulnerability in Github.com/goharbor/harbor involving Harbor repository description page has Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Github.com/goharbor/harbor versions are affected?
Affected versions include releases prior to 2.12.4-rc1, 2.13.1-rc1, 2.4.0-rc1.0.20250421072404-a13a16383a41 across affected packages: github.com/goharbor/harbor.
What version fixes CVE-2025-32019?
Upgrading to 2.12.4-rc1, 2.13.1-rc1, 2.4.0-rc1.0.20250421072404-a13a16383a41 (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.12.4-rc1, 2.13.1-rc1, Latest secure release, 2.4.0-rc1.0.20250421072404-a13a16383a41. Upgrade your dependency to 2.12.4-rc1, 2.13.1-rc1, Latest secure release, 2.4.0-rc1.0.20250421072404-a13a16383a41 or later.
What is the CVSS score of CVE-2025-32019?
CVE-2025-32019 has a CVSS v3.1 base score of 4.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-32019?
CVE-2025-32019 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Go dependencies for CVE-2025-32019?
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-f9vc-vf3r-pqqq",
  "modified" : "2025-07-23T22:14:58Z",
  "published" : "2025-07-23T14:40:05Z",
  "aliases" : [ "CVE-2025-32019" ],
  "summary" : "Harbor repository description page has Cross-site Scripting vulnerability",
  "details" : "### Impact\n\nIn the Harbor repository information, it is possible to inject code resulting in a stored XSS issue.\n\n### Patches\nHarbor v2.12.3 Harbor 2.11.3\n\n### Workarounds\nNo\n\n### References\n\n### Credit\ngleb.razvitie@gmail.com",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.12.0-rc1"
      }, {
        "fixed" : "2.12.4-rc1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.13.0-rc1"
      }, {
        "fixed" : "2.13.1-rc1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0-rc1.1"
      }, {
        "last_affected" : "2.11.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.0-rc1.0.20250421072404-a13a16383a41"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/security/advisories/GHSA-f9vc-vf3r-pqqq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32019"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/commit/76c2c5f7cfd9edb356cbb373889a59cc3217a058"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/commit/a13a16383a41a8e20f524593cb290dc52f86f088"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/commit/f019430872118852f83f96cac9c587b89052d1e5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/goharbor/harbor"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-23T14:40:05Z",
    "nvd_published_at" : "2025-07-23T21:15:26Z"
  }
}