{"schemaVersion":3,"id":"CVE-2022-31035","aliases":["GHSA-h4w9-6x78-8vrj","GO-2022-0498"],"status":"published","duplicateOf":null,"title":null,"description":"Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.0.0 are vulnerable to a cross-site scripting (XSS) bug allowing a malicious user to inject a `javascript:` link in the UI. When clicked by a victim user, the script will execute with the victim's permissions (up to and including admin). The script would be capable of doing anything which is possible in the UI or via the API, such as creating, modifying, and deleting Kubernetes resources. A patch for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. There are no completely-safe workarounds besides upgrading.","dates":{"published":"2022-06-27T19:10:11.000Z","modified":"2025-04-23T18:08:09.636Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":9,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","exploitability":5.9,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.5,"severity":"low","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00962,"percentile":0.61018,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00962},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00962,"percentile":0.61018}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00962,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00962,"percentile":0.61018}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"argoproj","product":"argo_cd","name":"argo cd","label":"argo_cd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 2.1.16","noFixRecorded":false,"fixedIn":null},{"text":"2.2.9","noFixRecorded":false,"fixedIn":null},{"text":"2.3.4","noFixRecorded":false,"fixedIn":null},{"text":"2.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 2.1.16 | 2.2.9 | 2.3.4 | 2.4.0","eol":{"isEol":true,"eolDate":"2022-10-26T00:00:00.000Z","matchMethod":"name_exact","cycle":{"name":"2.2","label":"2.2","eolFrom":"2022-10-26T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"2.2.16"},"product":{"name":"argo-cd","label":"Argo CD","category":"server-app"}},"hubHref":"/vendor/argoproj/argo_cd"},{"vendor":"argoproj","product":"argo-cd","name":"argo-cd","label":"argo-cd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 2.1.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0, < 2.2.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0, < 2.3.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.4.0, < 2.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 2.1.16 | ≥ 2.2.0, < 2.2.10 | ≥ 2.3.0, < 2.3.5 | ≥ 2.4.0, < 2.4.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"argo-cd","label":"Argo CD","category":"server-app"}},"hubHref":"/vendor/argoproj/argo-cd"},{"vendor":"github.com/argoproj","product":"argo-cd","name":"github.com/argoproj/argo-cd","label":"argo-cd","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/argoproj/argo-cd","purlType":"golang","versions":[{"text":"≥ 1.0.0, < 2.1.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 2.1.16 | ≥ 1.0.0 (No fix recorded)","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"argo-cd","label":"Argo CD","category":"server-app"}},"hubHref":null},{"vendor":"github.com/argoproj/argo-cd","product":"v2","name":"github.com/argoproj/argo-cd/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/argoproj/argo-cd/v2","purlType":"golang","versions":[{"text":"< 2.1.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0, < 2.2.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0, < 2.3.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.4.0, < 2.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.16 | ≥ 2.2.0, < 2.2.10 | ≥ 2.3.0, < 2.3.5 | ≥ 2.4.0, < 2.4.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj","label":"github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Mitigation","Third Party Advisory"]},{"url":"https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038","label":"github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/","label":"argo-cd.readthedocs.io/en/stable/user-guide/external-url/","hostname":"argo-cd.readthedocs.io","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31035","label":"nvd.nist.gov/vuln/detail/CVE-2022-31035","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://argo-cd.readthedocs.io/en/stable/user-guide/external-url","label":"argo-cd.readthedocs.io/en/stable/user-guide/external-url","hostname":"argo-cd.readthedocs.io","tags":["WEB"]},{"url":"https://github.com/argoproj/argo-cd","label":"github.com/argoproj/argo-cd","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-06-27T19:10:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:08:09.636Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:00:21.886Z","stale":false,"partial":false}}