CVE-2025-32019: Github.com/goharbor/harbor Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/goharbor/harbor to 2.12.4-rc1
Upgrade github.com/goharbor/harbor to 2.13.1-rc1
Upgrade github.com/goharbor/harbor to Latest secure release
Upgrade github.com/goharbor/harbor to 2.4.0-rc1.0.20250421072404-a13a16383a41
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
CVE-2025-32019 Affected Github.com/goharbor/harbor Versions
4 component(s)| 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?
Which Github.com/goharbor/harbor versions are affected?
What version fixes CVE-2025-32019?
Is github.com/goharbor/harbor affected?
What is the CVSS score of CVE-2025-32019?
What CWE is associated with CVE-2025-32019?
How can I check Go dependencies for CVE-2025-32019?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}