All vulnerabilities

Servers and applications

CVE-2026-53936

Reusable Invitation Magic Link Tokens Enable Unauthenticated Account Takeover

Severity
Medium 4.8
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
4.1.2
Weakness
Authentication bypass by capture-replay (CWE-294)Insufficient session expiration (CWE-613)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Also known as
GHSA-43jw-qhrv-v2g5
Sources
Project advisories (GitHub)

Description

Coolify's magic link authentication endpoint (/auth/link) uses an invitation token that contains the user's plaintext password encrypted with Laravel's app key (Crypt::encryptString("{$email}@@@{$password}")). The endpoint authenticates users solely by verifying this password hash — it never checks whether the invitation has expired and never marks the token as used. As a result, the same magic link token remains valid indefinitely (until the user explicitly changes their password), completely bypassing the 3-day invitation expiration window that is correctly enforced for UUID-based invitation links.

app/Http/Controllers/Controller.php — link() method

The link() endpoint checks only that the encrypted password in the token matches the user's current password hash. It does not call $invitation->isValid() and does not invalidate the token after first use:

Compare this with showInvitation() and acceptInvitation(), both of which properly enforce expiration:

From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Every version before 4.1.2

About Coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

From its GitHub repository.
Docker Hub pulls
5,885,689Docker Hub, 29 Nov 2026
GitHub stars
67,230GitHub, 29 Nov 2026
Forks
6,132GitHub, 29 Nov 2026
Latest release
v4.7.10GitHub, 29 Nov 2026
Released
28 Nov 2026GitHub
License
Apache-2.0GitHub
First published on GitHub
25 Jan 2021GitHub

References