Cross-site Scripting (XSS) Affecting git/git package, versions [,1.9.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.98% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GITGIT-2371997
  • published26 Jan 2022
  • disclosed20 Mar 2017
  • creditUnknown

Introduced: 20 Mar 2017

CVE-2014-9938  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade git/git to version 1.9.3 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.

CVSS Scores

version 3.1