GHSA-39p2-8hq9-fwj6 — @finos/git-proxy
Fix: finos/git-proxy@a620a2fGHSA-39p2-8hq9-fwj6 is a CWE-285 vulnerability in @finos/git-proxy. A fix is available for @finos/git-proxy — see the affected versions and patch details below.
GitProxy New Branch Approval Exploit
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for GHSA-39p2-8hq9-fwj6.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
@finos/git-proxynpmDescription
Summary
An attacker can exploit the way GitProxy handles new branch creation to bypass the approval of prior commits on the parent branch.
Because it can greatly affect system integrity, we classify this as a High impact vulnerability.
Details
GitProxy checks for the 0000000000000000000000000000000000000000 hash to detect new branches. This is used to process the commit accordingly in both getDiff.ts and parsePush.ts. However, the logic can be exploited as follows:
- Make a commit in branch
a(could bemain) - Make a new branch
bfrom that commit - Make a new commit in
b, then approve it/get it approved - Go back to
a, and attempt to push this commit to the proxy
The unapproved commit from a will be pushed to the remote.
PoC
To reproduce this vulnerability:
- Clone the target repository and make an unapproved commit on a mainline branch (e.g. main):
git checkout -b a origin/main
echo "DEBUG=true" > config.env
git add config.env
git commit -m "Sensitive debug config"
git push proxy a
- Without approving/getting the commit approved on branch
a, create a new branchbbased on it:
git checkout -b b
echo "feature x implemented" > feature.txt
git add feature.txt
git commit -m "Feature implementation"
git push proxy b
-
Approve/get approval for the push to branch
b. -
Now attempt to push the original unapproved commit from branch
a:
git checkout a
git push proxy a
Prior to 1.19.2, this results in unapproved commits from a getting pushed without any policy checks or explicit approval.
From 1.19.2 onwards, this flow will allow pushing all commits to branch b (and explicit approval will be asked for the changes on b only). However, commits on branch a now require approval on push. If merging branch b into a, this also requires explicit approval of the (previously unapproved) commits originating from a to prevent loopholes.
Impact
The vulnerability impacts all users or organizations relying on GitProxy to enforce policy and prevent unapproved changes. It requires no elevated privileges beyond regular push access, and no extra user interaction. It does however, require a GitProxy administrator or designated user (canUserApproveRejectPush) to approve pushes to the child branch.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @finos/git-proxy | all versions | 1.19.2npm install @finos/git-proxy@1.19.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @finos/git-proxy, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @finos/git-proxy to 1.19.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-39p2-8hq9-fwj6 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-39p2-8hq9-fwj6 can be triaged on real exposure rather than presence alone.
Tailored to GHSA-39p2-8hq9-fwj6. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-39p2-8hq9-fwj6 in your dependencies?
O3 Security finds GHSA-39p2-8hq9-fwj6 across npm dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.