GHSA-786q-9hcg-v9ff

Suggest an improvement
Source
https://github.com/advisories/GHSA-786q-9hcg-v9ff
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-786q-9hcg-v9ff/GHSA-786q-9hcg-v9ff.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-786q-9hcg-v9ff
Aliases
Downstream
Related
Published
2025-09-04T19:49:56Z
Modified
2025-09-09T06:42:11.534899Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Argo CD's Project API Token Exposes Repository Credentials
Details

Summary

Argo CD API tokens with project-level permissions are able to retrieve sensitive repository credentials (usernames, passwords) through the project details API endpoint, even when the token only has standard application management permissions and no explicit access to secrets.

Component: Project API (/api/v1/projects/{project}/detailed)

Vulnerability Details

Expected Behavior

API tokens should require explicit permission to access sensitive credential information. Standard project permissions should not grant access to repository secrets.

Actual Behavior

API tokens with basic project permissions can retrieve all repository credentials associated with a project through the detailed project API endpoint.

Note: This vulnerability does not only affect project-level permissions. Any token with project get permissions is also vulnerable, including global permissions such as: p, role/user, projects, get, *, allow

Steps to Reproduce

  1. Create an API token with the following project-level permissions:

    p, proj:myProject:project-automation-role, applications, sync, myProject/*, allow
    p, proj:myProject:project-automation-role, applications, action/argoproj.io/Rollout/*, myProject/*, allow
    p, proj:myProject:project-automation-role, applications, get, myProject/*, allow
    
  2. Call the project details API:

    bashcurl -sH "Authorization: Bearer $ARGOCD_API_TOKEN" \
      "https://argocd.example.com/api/v1/projects/myProject/detailed"
    
    
  3. Observe that the response includes sensitive repository credentials:
    {
      "repositories": [
        {
          "username": "<REDACTED>",
          "password": "<REDACTED>",
          "type": "helm",
          "name": "test-helm-repo",
          "project": "myProject"
        }
      ]
    }
    

Patches

  • v3.1.2
  • v3.0.14
  • v2.14.16
  • v2.13.9

Credits to @ashishgoyal111 for helping identify this issue.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2025-09-04T19:49:56Z",
    "nvd_published_at": "2025-09-04T23:15:32Z",
    "severity": "CRITICAL",
    "cwe_ids": [
        "CWE-200"
    ]
}
References

Affected packages

Go / github.com/argoproj/argo-cd/v2

Package

Name
github.com/argoproj/argo-cd/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.13.0
Fixed
2.13.9

Go / github.com/argoproj/argo-cd/v2

Package

Name
github.com/argoproj/argo-cd/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.14.0
Fixed
2.14.16

Go / github.com/argoproj/argo-cd/v3

Package

Name
github.com/argoproj/argo-cd/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v3

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.14

Go / github.com/argoproj/argo-cd/v3

Package

Name
github.com/argoproj/argo-cd/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.1.0-rc1
Fixed
3.1.2