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

CVE-2026-105638: Plane Project Management Auth Bypass

CVE-2026-105638 is an authentication bypass flaw in Plane that exploits weak OTP implementation with no rate limiting. Attackers can brute-force six-digit codes to gain unauthorized access. This article covers technical details, 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-105638 Overview

Plane is an open-source project management tool. Versions prior to 1.4.0 contain a brute-force vulnerability in the magic-code email login flow. The verifier accepts a six-digit numeric one-time password (OTP) with roughly 20 bits of entropy and enforces no per-code attempt limits. Incorrect submissions do not increment any counter, invalidate the Redis entry, or lock the target email. The verifier extends django.views.View instead of DRF's APIView, so the configured AnonRateThrottle never applies, and the middleware stack lacks any Django-level rate limiter. An attacker can therefore enumerate the entire 1,000,000-code keyspace against a known email address.

Critical Impact

Unauthenticated attackers can brute-force the six-digit magic-code OTP to take over any Plane account tied to a known email address, with no account lockout or rate limiting in place.

Affected Products

  • Plane (makeplane/plane) versions prior to 1.4.0
  • Self-hosted Plane deployments relying on magic-code email login
  • All Plane instances with ENABLE_MAGIC_LINK_LOGIN enabled

Discovery Timeline

Technical Details for CVE-2026-105638

Vulnerability Analysis

The flaw is an improper restriction of excessive authentication attempts [CWE-307]. Plane's magic-code login issues a six-digit numeric OTP, giving an attacker a 1-in-1,000,000 chance per guess. During the OTP's time-to-live window, an attacker can submit tens of thousands of guesses per second against the verifier endpoint. With no counter, no lockout, and no throttling, exhausting the keyspace is trivial.

Account compromise through this flaw grants full access to projects, issues, documents, and workspace data belonging to the targeted user. Because the attack only requires knowledge of a victim's email address, any user of a self-hosted Plane instance is reachable from the public internet when the service is exposed.

Root Cause

Three defensive layers are missing in the pre-1.4.0 verifier logic in apps/api/plane/authentication/provider/credentials/magic_code.py:

  • No per-token failed-attempt counter and no invalidation of the Redis entry on wrong submissions.
  • The verifier inherits from django.views.View rather than DRF's APIView, bypassing the configured AnonRateThrottle.
  • The Django middleware stack includes no IP-based throttling (django-ratelimit, django-axes, or equivalent).

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker requests a magic code for a victim's email, then issues parallel POST requests to the verify endpoint iterating through the 000000-999999 range. Because wrong guesses leave the OTP valid until expiry, the attacker only needs to land one correct code before the TTL elapses to receive a valid session.

python
 class MagicCodeProvider(CredentialAdapter):
     provider = "magic-code"
 
+    # Max wrong-code verification attempts per issued token before the token
+    # is invalidated. Prevents brute-forcing the 6-digit code space within
+    # the token TTL window.
+    MAX_VERIFY_ATTEMPTS = 5
+
+    # Atomic INCR + first-time EXPIRE for the verify-attempt counter.
+    # Using a dedicated counter key with this script makes the increment
+    # safe under concurrent wrong-code requests; a plain JSON read/modify/
+    # write would race and let parallel attackers exceed the cap.
+    _INCREMENT_VERIFY_ATTEMPTS_SCRIPT = (
+        'local count = redis.call("INCR", KEYS[1]) '
+        'if count == 1 then '
+        '    redis.call("EXPIRE", KEYS[1], tonumber(ARGV[1])) '
+        'end '
+        'return count'
+    )
+
+    @staticmethod
+    def _verify_attempts_key(token_key):
+        return f"{token_key}:verify_attempts"

Source: GitHub Commit b1c78fe. The patch introduces a hard cap of five wrong attempts per issued token, enforced atomically in Redis via a Lua script to prevent races under concurrent requests.

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-105638

Indicators of Compromise

  • High-volume POST requests to the magic-code verification endpoint originating from a single IP or small IP pool.
  • Repeated failed OTP verifications targeting the same email address within a short time window.
  • Successful login events immediately preceded by hundreds or thousands of failed verification attempts.
  • Session or token activity from geographic locations inconsistent with the account owner.

Detection Strategies

  • Review Plane API access logs for abnormal request rates against the magic-code verify route.
  • Correlate 4xx responses on the verify endpoint with subsequent 2xx authentication success events.
  • Baseline typical magic-code verification volume per account and alert on deviations.
  • Monitor Redis for rapid growth or churn in magic-code token keys as a sign of enumeration.

Monitoring Recommendations

  • Forward Plane API and reverse-proxy logs to a centralized logging platform for correlation.
  • Instrument the verify endpoint with request-rate metrics and alert thresholds.
  • Track authentication outcomes per email address and per source IP over rolling windows.
  • Enable audit logging for new session creation and sudden workspace access patterns.

How to Mitigate CVE-2026-105638

Immediate Actions Required

  • Upgrade Plane to version 1.4.0 or later without delay.
  • Audit recent magic-code login activity for signs of brute-force enumeration.
  • Invalidate active sessions for any account showing anomalous verification patterns.
  • Restrict public exposure of the Plane API behind a reverse proxy with rate limiting until patched.

Patch Information

The vulnerability is fixed in Plane 1.4.0. The patch in apps/api/plane/authentication/provider/credentials/magic_code.py adds a MAX_VERIFY_ATTEMPTS = 5 cap enforced via an atomic Redis INCR + EXPIRE Lua script, invalidating the token after five wrong submissions. The companion change in apps/api/plane/authentication/rate_limit.py adds a dedicated throttle class for the verify endpoint. Full details are available in GitHub Pull Request #9130 and the GitHub Security Advisory GHSA-mqjv-rwgv-4gxq.

Workarounds

  • Enforce IP-based rate limiting at the reverse proxy or WAF layer on the magic-code verify route.
  • Temporarily disable ENABLE_MAGIC_LINK_LOGIN and require password or SSO authentication.
  • Restrict access to the Plane instance via VPN or IP allowlisting until the upgrade is applied.
  • Shorten OTP TTL in configuration to reduce the brute-force window.
bash
# Example nginx rate limit for the magic-code verify endpoint
http {
    limit_req_zone $binary_remote_addr zone=magic_verify:10m rate=5r/m;

    server {
        location /auth/magic-generate/ {
            limit_req zone=magic_verify burst=5 nodelay;
            proxy_pass http://plane_api;
        }
    }
}

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.