Skip to main content
Vulnerability Database/CVE-2026-108157

CVE-2026-108157: Pingvin Share X Auth Bypass Vulnerability

CVE-2026-108157 is an authentication bypass flaw in Pingvin Share X that allows attackers to hijack accounts via OAuth email linking. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108157 Overview

CVE-2026-108157 is an improper authentication vulnerability [CWE-287] in Pingvin Share X, a self-hosted file sharing application. The flaw affects versions from 0.19.0 before 1.22.0. The OAuthService.signUp() function automatically links OAuth identities to existing local accounts based on email address. The GenericOidcProvider fails to check the email_verified claim in the OIDC ID token. Remote unauthenticated attackers can register a victim's email on an attacker-controlled or misconfigured OAuth/OIDC provider and sign in as the victim, including administrators, bypassing Time-based One-Time Password (TOTP) multi-factor authentication.

Critical Impact

Unauthenticated attackers can take over any account, including administrator accounts, while bypassing TOTP multi-factor authentication.

Affected Products

  • Pingvin Share X versions 0.19.0 through 1.21.x
  • Deployments with any OAuth/OIDC provider enabled
  • Fixed in Pingvin Share X version 1.22.0

Discovery Timeline

  • 2026-10-09 - CVE-2026-108157 published to the National Vulnerability Database
  • 2026-10-09 - Last updated in NVD database

Technical Details for CVE-2026-108157

Vulnerability Analysis

Pingvin Share X allows administrators to enable OAuth or OpenID Connect (OIDC) providers for user sign-in. When a user authenticates through an OIDC provider, the backend OAuthService.signUp() function searches for an existing local account that matches the email claim returned by the identity provider. If a match is found, the OAuth identity is automatically linked to that account and a session token is issued.

The GenericOidcProvider returns the email claim from the ID token without validating the email_verified claim. An attacker who controls a federated identity provider, or who can register an arbitrary email address on an enabled public provider, can assert any email address they choose. The automatic linking logic then issues a valid session for the victim's account.

The attack bypasses TOTP checks because second-factor enforcement is applied to the local credential flow rather than the OAuth linking flow. Administrator accounts are therefore reachable without knowledge of the password or TOTP seed.

Root Cause

The root cause is a missing verification of the email_verified boolean in the OIDC ID token combined with implicit trust in email-based account linking. The vulnerable logic lives in backend/src/oauth/oauth.service.ts and backend/src/oauth/provider/genericOidc.provider.ts.

Attack Vector

An attacker registers an account on an enabled OIDC provider using the victim's email address. The attacker then initiates OAuth sign-in against the Pingvin Share X instance. The backend receives an ID token containing the victim's email, finds the matching local user, links the identity, and returns a session token for the victim.

typescript
// Security patch in backend/src/oauth/oauth.service.ts
// Previously, a matching local account triggered automatic linking.
// The patch rejects linking entirely and surfaces an error page.
    });

    if (existingUser) {
-      await this.prisma.oAuthUser.create({
-        data: {
-          provider: user.provider,
-          providerUserId: user.providerId.toString(),
-          providerUsername: user.providerUsername,
-          userId: existingUser.id,
-        },
-      });
-      await this.updateIsAdmin(existingUser.id, user.isAdmin);
-      return this.auth.generateToken(existingUser, { idToken: user.idToken });
+      throw new ErrorPageException("email_already_exists", "/auth/signIn", [
+        `provider_${user.provider}`,
+      ]);
    }

    const result = await this.auth.signUp(

Source: GitHub Commit 07aa8c0

typescript
// Security patch in backend/src/oauth/provider/genericOidc.provider.ts
// Adds an explicit email_verified check before trusting the claim.
      ]);
    }

+    if (idTokenData.email && idTokenData.email_verified === false) {
+      throw new ErrorPageException("email_not_verified", "/auth/signIn", [
+        `provider_${this.name}`,
+      ]);
+    }
+
    return {
      provider: this.name as any,
      email: idTokenData.email,

Source: GitHub Commit 07aa8c0

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-108157

Indicators of Compromise

  • New OAuthUser rows in the Pingvin Share X database that link an administrator account to a previously unused OIDC provider identity.
  • Successful OAuth sign-in events for accounts that have never used federated authentication before.
  • Administrator role changes (updateIsAdmin) triggered by an OAuth callback rather than a manual admin action.
  • OIDC ID tokens accepted with email_verified: false or with the claim absent.

Detection Strategies

  • Review backend application logs for OAuthService.signUp executions that resulted in linking to pre-existing accounts.
  • Compare the provider and providerUserId fields in the OAuthUser table against expected federated identities.
  • Alert on sign-in events where the authentication method transitions from local credentials to OAuth without an administrator-initiated enrollment.

Monitoring Recommendations

  • Forward Pingvin Share X backend logs and reverse proxy access logs to a central logging platform and retain OAuth callback traffic.
  • Monitor the /api/oauth/* callback endpoints for unusual source IP addresses and spikes in sign-in volume.
  • Track administrator session creation and correlate with the authentication provider used for each session.

How to Mitigate CVE-2026-108157

Immediate Actions Required

  • Upgrade Pingvin Share X to version 1.22.0 or later as published in the GitHub Release v1.22.0.
  • Audit the OAuthUser table and remove any provider links that were not initiated by the account owner.
  • Rotate credentials and session tokens for all administrator accounts and review recent administrative actions.
  • Review enabled OIDC providers and disable any provider that does not enforce verified email ownership.

Patch Information

The fix is delivered in Pingvin Share X 1.22.0 through commit 07aa8c0. The patch rejects automatic account linking when a local account already exists for the email and enforces an email_verified === true check in the generic OIDC provider. See the GitHub Security Advisory GHSA-wrcg-4874-45p7 and the VulnCheck Advisory on OAuth Vulnerability for additional detail.

Workarounds

  • Disable all OAuth and OIDC providers until the upgrade to 1.22.0 is applied.
  • Restrict allowed OIDC issuers to providers that enforce email verification such as corporate identity providers.
  • Place the Pingvin Share X administrative interface behind a VPN or network allowlist to limit exposure of OAuth callback endpoints.
bash
# Example: pull and deploy the fixed Pingvin Share X container image
docker pull ghcr.io/smp46/pingvin-share-x:1.22.0
docker stop pingvin-share-x && docker rm pingvin-share-x
docker run -d --name pingvin-share-x \
  -p 3000:3000 \
  -v /opt/pingvin/data:/opt/app/backend/data \
  ghcr.io/smp46/pingvin-share-x:1.22.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.