github.com/rancher/rancher

CVE-2022-43760

CVE-2022-43760 is a medium-severity cross-site scripting (XSS) vulnerability in github.com/rancher/rancher (go), affecting versions >= 2.6.0, < 2.6.13. It is fixed in 2.6.13, 2.7.4.

Key facts
CVSS score
8.4
Medium
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
github.com/rancher/rancher
Fixed in
2.6.13, 2.7.4
Disclosed
2022

Summary

Impact Multiple Cross-Site Scripting (XSS) vulnerabilities have been identified in the Rancher UI. Cross-Site scripting allows a malicious user to inject code that is executed within another user's browser, allowing the attacker to steal sensitive information, manipulate web content, or perform other malicious activities on behalf of the victims. This could result in a user with write access to the affected areas being able to act on behalf of an administrator, once an administrator opens the affected web page. The affected areas include the Projects/Namespaces and Auth Provider sections. The attacker needs to be authenticated and have write access to those features in order to exploit the vulnerabilities. Some of the permissions (roles) required are: Project Owner. Restricted Admin. Configure Authentication. Administrator. Custom RBAC Role that provides write access on Projects or External Authentication Providers. For users that suspect this vulnerability may have targeted their Rancher instance, we recommend rotating all API Keys and Kubeconfig tokens. It's also advised to review logs and possibly rotate credentials stored as secrets in Rancher and downstream cluster, if you believe that users' credentials to access Rancher and its clusters might have been compromised. Patches Patched versions include releases 2.6.13, 2.7.4 and later versions. Workarounds There is no direct mitigation besides updating Rancher to a patched version. Credits We would like to recognize and thank @bybit-sec for the responsible disclosure of this security issue. For more information If you have any questions or comments about this advisory: Reach out to the SUSE Rancher Security team for security related inquiries. Open an issue in the Rancher repository. Verify with our support matrix and product support lifecycle.

Impact

What is cross-site scripting (XSS)?

Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.

Severity and exposure

CVE-2022-43760 has a CVSS score of 8.4 (Medium). The vector is network-reachable, high privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (2.6.13, 2.7.4). Upgrading removes the vulnerable code path.

Affected versions

go

  • github.com/rancher/rancher (>= 2.6.0, < 2.6.13)
  • github.com/rancher/rancher (>= 2.7.0, < 2.7.4)

Security releases

  • github.com/rancher/rancher → 2.6.13 (go)
  • github.com/rancher/rancher → 2.7.4 (go)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2022-43760 is reachable in your applications. Explore open-source security for your team.

See if CVE-2022-43760 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2022-43760 in your environment

Remediation advice

Upgrade the following packages to resolve this vulnerability:

  • Upgrade github.com/rancher/rancher to 2.6.13 or later
  • Upgrade github.com/rancher/rancher to 2.7.4 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2022-43760

What is CVE-2022-43760?

CVE-2022-43760 is a medium-severity cross-site scripting (XSS) vulnerability in github.com/rancher/rancher (go), affecting versions >= 2.6.0, < 2.6.13. It is fixed in 2.6.13, 2.7.4. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.

How severe is CVE-2022-43760?

CVE-2022-43760 has a CVSS score of 8.4 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of github.com/rancher/rancher are affected by CVE-2022-43760?

github.com/rancher/rancher (go) versions >= 2.6.0, < 2.6.13 is affected.

Is there a fix for CVE-2022-43760?

Yes. CVE-2022-43760 is fixed in 2.6.13, 2.7.4. Upgrade to this version or later.

Is CVE-2022-43760 exploitable, and should I be worried?

Whether CVE-2022-43760 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2022-43760 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2022-43760?
  • Upgrade github.com/rancher/rancher to 2.6.13 or later
  • Upgrade github.com/rancher/rancher to 2.7.4 or later

Stop the waste.
Protect your environment with Kodem.