Vulnerabilities in pkg:golang/github.com/fluxcd/source-controller
PACKAGECVE-2026-47680 is a MODERATE improper path handling allows traversal vulnerability (CWE-23: Relative Path Traversal) affecting Source controller libraries in the Go ecosystem. The issue involves improper path handling allows traversal. Remediation is available by upgrading affected packages to version 1.8.5.
pkg:golang/github.com/fluxcd/source-controller
Vulnerability advisories affecting package pkg:golang/github.com/fluxcd/source-controller. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jjrm-hr5f-673x | CVE-2026-47680 | MODERATE | Source controller: Improper path handling allows traversal |
| GHSA-f4p5-x4vc-mh4v | CVE-2022-39272 | MODERATE | Improper use of metav1.Duration allows for Denial of Service |
| GHSA-v554-xwgw-hc3w | CVE-2024-31216 | MODERATE | source-controller leaks Azure Storage SAS token into logs |
CVE-2026-47680 at a Glance
How to Fix CVE-2026-47680
To remediate this vulnerability, upgrade all affected Source controller 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/fluxcd/source-controller to 1.8.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/fluxcd/source-controller
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-47680, inspect your project dependencies for Source controller:
inspect dependencies for github.com/fluxcd/source-controller
Analyze the terminal output to locate any version of Source controller in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.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-23: Relative Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. In Source controller, 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-2026-47680 Affected Source controller Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/fluxcd/source-controller
|
Go |
≥ 0.0.17
< 1.8.5
|
1.8.5
|
References
Frequently Asked Questions
What is CVE-2026-47680?
Which Source controller versions are affected?
What version fixes CVE-2026-47680?
Is github.com/fluxcd/source-controller affected?
What CWE is associated with CVE-2026-47680?
How can I check Go dependencies for CVE-2026-47680?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jjrm-hr5f-673x",
"modified" : "2026-06-05T16:32:51Z",
"published" : "2026-06-05T16:32:51Z",
"aliases" : [ "CVE-2026-47680" ],
"summary" : "Source controller: Improper path handling allows traversal",
"details" : "### Impact\n\nAn actor with the ability to influence the contents of a bucket referenced by a `Bucket` resource can cause source-controller to write fetched object data to paths outside the per-reconciliation working directory.\n\nThe corruption surface is bounded by source-controller's own and downstream Flux controllers' digest verification: source-controller verifies stored artifact digests during reconciliation and rebuilds on divergence; consumers (kustomize-controller, helm-controller) verify the digest of fetched artifacts and reject mismatches. These checks prevent a manipulated artifact from reaching the cluster, but an attacker can still write files anywhere the source-controller pod has permission to write.\n\nSeparately, a user with permission to create or update `GitRepository` resources can cause source-controller to test for the existence of paths outside the cloned repository. Because the result is exposed via the resource's status, this allows limited enumeration of file paths on the controller pod. This surface exists only on source-controller v1.6.0 and later, where the sparse-checkout feature was introduced.\n\n### Patches\n\nThis vulnerability was fixed in source-controller **v1.8.5**.\n\n### Workarounds\n\nThere is no in-product workaround. Users should upgrade to a patched version.\n\nAs a defense-in-depth measure for the GitRepository sparse-checkout surface, a `ValidatingAdmissionPolicy` (or a third-party policy engine such as Kyverno or OPA Gatekeeper) can be deployed to reject `GitRepository` resources whose `.spec.sparseCheckout` entries contain `..` or absolute path segments.\n\n### References\n\n- [source-controller#2054](https://github.com/fluxcd/source-controller/pull/2054)\n\n### Credits\n\nThe path traversal in the Bucket reconciler was reported by JUNYI LIU. The path traversal in the GitRepository sparse-checkout validation was found and patched by the Flux engineering team.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in the source-controller repository.\n- Contact us at the CNCF Flux Channel.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/fluxcd/source-controller"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.17"
}, {
"fixed" : "1.8.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.8.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fluxcd/source-controller/security/advisories/GHSA-jjrm-hr5f-673x"
}, {
"type" : "WEB",
"url" : "https://github.com/fluxcd/source-controller/pull/2054"
}, {
"type" : "WEB",
"url" : "https://github.com/fluxcd/source-controller/commit/759bd6c451e7cc4327b38f42c8b671980165cb0e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fluxcd/source-controller"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-23" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-05T16:32:51Z",
"nvd_published_at" : null
}
}