github.com/argoproj/argo-cd
Affected
- introduced
1.2.0-rc1, last affected1.8.7(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: BIT-argo-cd-2025-47933, CVE-2025-47933, GO-2025-3720
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.
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:
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
Critical Basis: The source's own band: CRITICAL
1.2.0-rc1, last affected 1.8.7 (semver)None listed
No fixed version is listed.
2.0.0-rc3, fixed 2.13.8 (semver)2.13.8
2.13.8go get github.com/argoproj/argo-cd/[email protected]2.14.0-rc1, fixed 2.14.13 (semver)2.14.13
2.14.13go get github.com/argoproj/argo-cd/[email protected]0, fixed 3.0.4 (semver)3.0.4
3.0.4go get github.com/argoproj/argo-cd/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0