Vulnerabilities in pkg:golang/github.com/fluxcd/source-controller

PACKAGE
Advisory Identifier: GHSA-jjrm-hr5f-673x
Advisory Summary

CVE-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.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/fluxcd/source-controller

3 Known Advisory Record(s)

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

CVE Identifier CVE-2026-47680
GHSA Identifier GHSA-jjrm-hr5f-673x
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-23: Relative Path Traversal
Affected Product Source controller
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/fluxcd/source-controller fixed: 1.8.5
Upgrade github.com/fluxcd/source-controller to 1.8.5
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/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

### Impact An 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. The 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. Separately, 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. ### Patches This vulnerability was fixed in source-controller **v1.8.5**. ### Workarounds There is no in-product workaround. Users should upgrade to a patched version. As 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. ### References - [source-controller#2054](https://github.com/fluxcd/source-controller/pull/2054) ### Credits The 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. ### For more information If you have any questions or comments about this advisory: - Open an issue in the source-controller repository. - Contact us at the CNCF Flux Channel.

CVE-2026-47680 Affected Source controller Versions

1 component(s)
Fixed Versions:
1.8.5
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?
CVE-2026-47680 is a security vulnerability in Source controller involving Improper path handling allows traversal under CWE-23: Relative Path Traversal.
Which Source controller versions are affected?
Affected versions include releases prior to 1.8.5 across affected packages: github.com/fluxcd/source-controller.
What version fixes CVE-2026-47680?
Upgrading to 1.8.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/fluxcd/source-controller affected?
Yes, github.com/fluxcd/source-controller is affected in releases prior to 1.8.5. Upgrade your dependency to 1.8.5 or later.
What CWE is associated with CVE-2026-47680?
CVE-2026-47680 is classified under CWE-23: Relative Path Traversal (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.).
How can I check Go dependencies for CVE-2026-47680?
Run the dependency tree command: 'inspect dependencies for github.com/fluxcd/source-controller'. 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-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
  }
}