---
id: "CVE-2026-125377"
page: "https://infrastack.ai/live/CVE-2026-125377"
kind: "vulnerability"
aliases: ["CVE-2026-125377"]
title: "Pig: missing authorization exposes OAuth2 client secrets to any logged-in user"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["java", "oauth2", "package", "pig", "self-hosted", "spring"]
not_affected_if: ["version-4.1.2-or-later"]
published_at: "2026-11-10T00:17:10+00:00"
first_seen_at: "2026-11-10T00:28:43+00:00"
updated_at: "2026-11-10T00:30:14+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125377", "first_seen_at": "2026-11-10T00:28:43+00:00"}]
exploit_sources: []
---

# Pig: missing authorization exposes OAuth2 client secrets to any logged-in user

Link for people: https://infrastack.ai/live/CVE-2026-125377 (this .md is for agents)

Pig before 4.1.2 has a missing authorization check in SysClientController, so any authenticated user without client-management permission can read OAuth2 client secrets through GET /client/{clientId} and GET /client/export. An attacker who gets those secrets can request tokens for the affected clients using their configured grant types.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for the `SysClientController` class and the `/client/{clientId}` and `/client/export` routes in the Pig deployment.
- Check the Pig version in the project's dependency file; versions below `4.1.2` are affected.

## Fix

- Pig: upgrade to `4.1.2` or later.

## Timeline

- 2026-11-10T00:28:43+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125377

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/pig-before-4.1.2-missing-authorization-exposes-oauth2-client-secrets-via-client
- [fix] Patch: github.com https://github.com/pig-mesh/pig/commit/0fffbf14d393f30a0272a3cdf0a54efd45e0d9e3
- [fix] Release notes: github.com https://github.com/pig-mesh/pig/releases/tag/v4.1.2

## From the sources

Pig before 4.1.2 contains a missing authorization vulnerability in SysClientController that allows authenticated users without client-management permission to retrieve OAuth2 client secrets via GET /client/{clientId} and GET /client/export. Attackers can fetch clientSecret values for seed clients like pig, app, and daemon or export the client table, then obtain tokens using those clients' configured grant types.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
