CVE-2025-47933: Argo CD allows cross-site scripting on repositories page
Impact This vulnerability allows an attacker to perform arbitrary actions on behalf of the victim via the API, such as creating, modifying, and deleting Kubernetes resources. Due to the improper filtering of URL protocols in the repository page, an attacker can achieve cross-site scripting with permission to edit the repository.
Published May 28, 2025 · Updated May 29, 2025
Affected packages
github.com/argoproj/argo-cd
- Ecosystem
- Go
- Affected
- >= 1.2.0-rc1, <= 1.8.7
- Fixed in
- No patched version yet
- Check
go list -m github.com/argoproj/argo-cd
github.com/argoproj/argo-cd/v2
- Ecosystem
- Go
- Affected
- >= 2.0.0-rc3, < 2.13.8
- Fixed in
- 2.13.8
- Check
go list -m github.com/argoproj/argo-cd/v2
github.com/argoproj/argo-cd/v2
- Ecosystem
- Go
- Affected
- >= 2.14.0-rc1, < 2.14.13
- Fixed in
- 2.14.13
- Check
go list -m github.com/argoproj/argo-cd/v2
github.com/argoproj/argo-cd/v3
- Ecosystem
- Go
- Affected
- < 3.0.4
- Fixed in
- 3.0.4
- Check
go list -m github.com/argoproj/argo-cd/v3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
This vulnerability allows an attacker to perform arbitrary actions on behalf of the victim via the API, such as creating, modifying, and deleting Kubernetes resources. Due to the improper filtering of URL protocols in the repository page, an attacker can achieve cross-site scripting with permission to edit the repository.
In ui/src/app/shared/components/urls.ts, the following code exists to parse the repository URL.
https://github.com/argoproj/argo-cd/blob/0ae5882d5ae9fe88efc51f65ca8543fb8c3a0aa1/ui/src/app/shared/components/urls.ts#L14-L26
Since this code doesn't validate the protocol of repository URLs, it's possible to inject javascript: URLs here.
https://github.com/argoproj/argo-cd/blob/0ae5882d5ae9fe88efc51f65ca8543fb8c3a0aa1/ui/src/app/shared/components/repo.tsx#L5-L7
As the return value of this function is used in the href attribute of the a tag, it's possible to achieve cross-site scripting by using javascript: URLs.
Browsers may return the proper hostname for javascript: URLs, allowing exploitation of this vulnerability.
Patches
A patch for this vulnerability has been released in the following Argo CD versions:
- v3.0.4
- v2.14.13
- v2.13.8
The patch incorporates a way to validate the URL being passed in. Returning null if the validation fails.
Workarounds
There are no workarounds other than depending on the browser to filter the URL.
Credits
Disclosed by @Ry0taK RyotaK.
For more information
Open an issue in the Argo CD issue tracker or discussions Join us on Slack in channel #argo-cd
Credited to Ry0taK, crenshaw-dev.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-77459
Argo CD: AppProject destination-namespace and resource restrictions bypassed by PreDelete/PostDelete resource hooks
critical9.9No fixOct 15, 2026CVE-2026-42880
ArgoCD ServerSideDiff is vulnerable to Kubernetes Secret Extraction
critical9.6May 7, 2026CVE-2025-55190
Argo CD's Project API Token Exposes Repository Credentials
critical9.9Sep 4, 2025CVE-2024-31989
ArgoCD Vulnerable to Use of Risky or Missing Cryptographic Algorithms in Redis Cache
critical9.0No fixMay 21, 2024CVE-2024-21652
Bypassing Brute Force Protection via Application Crash and In-Memory Data Loss
critical9.8Mar 18, 2024CVE-2024-28175
Cross-site scripting on application summary component
critical9.0No fixMar 15, 2024
