Isomorphic-git
isomorphic-git < 1.42.0 Prototype Pollution via getRemoteInfo
isomorphic-git before 1.42.0 contains a prototype pollution vulnerability in the getRemoteInfo function that allows a malicious Git server operator to pollute Object.prototype by advertising crafted ref names containing '__proto__' path segments during ref negotiation. Attackers controlling a Git server can advertise a specially crafted ref such as '__proto__/corsProxy' to reroute all subsequent network operations through an attacker-controlled proxy, causing isomorphic-git to invoke the victim's onAuth callback and transmit credentials to the attacker when the victim calls getRemoteInfo with an attacker-supplied URL.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.42.0
Fixed in 1.42.0
Mitigation
Upgrade isomorphic-git to 1.42.0 or later.
References
- Vendor advisory github.com/isomorphic-git/isomorphic-git/secur…
- Release notes github.com/isomorphic-git/isomorphic-git/relea…
- Patch github.com/isomorphic-git/isomorphic-git/pull/…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.