Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @sync-in/server
  4. ›
  5. CVE-2026-58269

CVE-2026-58269: Sync-in Server has a complete 2FA Bypass via `POST /api/auth/token`

September 22, 2026

POST /api/auth/token authenticates with username and password only, then calls getTokens(), which returns unrestricted Bearer access and refresh JWTs without checking whether the account has TOTP 2FA enabled. An attacker who already knows valid credentials for a 2FA-enabled account can bypass 2FA in a single request.

The parallel login endpoint (POST /api/auth/login) correctly enforces 2FA by calling setCookies(user, res, true), which gates on user.twoFaEnabled when server-side TOTP is enabled.

References

  • github.com/Sync-in/server/commit/3ec74e2ea1f538fe1a3ac9487bdf24a19e548361
  • github.com/Sync-in/server/pull/228
  • github.com/Sync-in/server/releases/tag/v2.4.0
  • github.com/Sync-in/server/security/advisories/GHSA-92cr-jxw4-5wjg
  • github.com/advisories/GHSA-92cr-jxw4-5wjg
  • nvd.nist.gov/vuln/detail/CVE-2026-58269

Code Behaviors & Features

Detect and mitigate CVE-2026-58269 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.0

Fixed versions

  • 2.4.0

Solution

Upgrade to version 2.4.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-288: Authentication Bypass Using an Alternate Path or Channel

Source file

npm/@sync-in/server/CVE-2026-58269.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 23 Sep 2026 12:16:47 +0000.