org.mvnpm:isomorphic-git@1.38.7

  • latest version

    1.44.9

  • latest non vulnerable version

  • first published

    8 months ago

  • latest version published

    22 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:isomorphic-git package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Prototype Pollution

    org.mvnpm:isomorphic-git is a pure JavaScript reimplementation of git that works in both Node.js and browser JavaScript environments. It can read and write to git repositories, fetch from and push to git remotes (such as GitHub), all without any native C++ module dependencies.

    Affected versions of this package are vulnerable to Prototype Pollution via the getRemoteInfo function. An attacker can manipulate the prototype of objects by advertising crafted ref names containing __proto__ path segments during ref negotiation, which can reroute network operations through an attacker-controlled proxy and result in the transmission of sensitive credentials by invoking the victim's authentication callback when connecting to a malicious server.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:isomorphic-git to version 1.42.2 or higher.

    [,1.42.2)
    • H
    Directory Traversal

    org.mvnpm:isomorphic-git is a pure JavaScript reimplementation of git that works in both Node.js and browser JavaScript environments. It can read and write to git repositories, fetch from and push to git remotes (such as GitHub), all without any native C++ module dependencies.

    Affected versions of this package are vulnerable to Directory Traversal via applyTreeChanges in src/utils/walkerToTreeEntryMap.js, which materializes files during git cherry-pick by joining the worktree root with the entry path and writing blob contents without checking whether any leading path component is a symbolic link. If the victim worktree contains a tracked symlink pointing outside the worktree, an attacker who controls a cherry-picked commit can place a file beneath that symlink path, causing the write to follow the symlink and materialize attacker-controlled content at an arbitrary filesystem location. This can enable data tampering, code injection into interpreted files, privilege escalation, or follow-on code execution depending on the target path. The regular checkout path protects against this with assertNoSymlinkInLeadingPath, but that guard was not applied in applyTreeChanges.

    How to fix Directory Traversal?

    Upgrade org.mvnpm:isomorphic-git to version 1.38.9 or higher.

    [,1.38.9)