Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

GHSA-39p2-8hq9-fwj6 @finos/git-proxy

Fix: finos/git-proxy@a620a2f

GHSA-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

Also known asCVE-2025-54585
Published
Jul 30, 2025
Updated
Jul 31, 2025
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Sep 19, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

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

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs29th percentile — riskier than 29% of all scored CVEsHighest risk

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

1 pkg affected

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.

0other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
@finos/git-proxynpm
348downloads / week

Description

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:

  1. Make a commit in branch a (could be main)
  2. Make a new branch b from that commit
  3. Make a new commit in b, then approve it/get it approved
  4. 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:

  1. 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
  1. Without approving/getting the commit approved on branch a, create a new branch b based 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
  1. Approve/get approval for the push to branch b.

  2. 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

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npm@finos/git-proxyall versions1.19.2npm install @finos/git-proxy@1.19.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. 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.

  3. 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.

  4. 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

### 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: 1. Make a commit in branch `a` (could be `main`) 2. Make a new branch `b` from that commit 3. Make a new commit i
O3 Security · Impact-Aware SCA

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.

GHSA-39p2-8hq9-fwj6: @finos/git-proxy | O3 Security