Alta

GitProxy New Branch Approval Exploit

  • Publicada: 30.07.2025
  • Actualizado: 11.10.2026 10:22

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):
bash
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:
bash
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:

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

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm @finos/git-proxy < 1.19.2 1.19.2

Referencias

Puntuación CVSS -
Vector CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N
Debilidad (CWE)
CWE-285
Plataforma
npm
Paquete
@finos/git-proxy
Publicada
30.07.2025
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-39p2-8hq9-fwj6 - CC BY 4.0

Historial de vulnerabilidades: @finos/git-proxy

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
4
Primera → última
07.2025 07.2025
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Alta 4

Divulgaciones por año

  1. 2025: 4
  2. 2026: 0
  1. Alta · 7.1 CVE-2025-54586 < 1.19.2 1.19.2
  2. GitProxy New Branch Approval Exploit esta entrada
    Alta CVE-2025-54585 < 1.19.2 1.19.2
  3. Alta CVE-2025-54584 < 1.19.2 1.19.2
  4. Alta CVE-2025-54583 < 1.19.2 1.19.2

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.