Description
Cal.com is open-source scheduling software. From 3.1.6 to before 6.0.7, there is a vulnerability in a custom NextAuth JWT callback that allows attackers to gain full authenticated access to any user's account by supplying a target email address via session.update(). This vulnerability is fixed in 6.0.7.
EPSS Score:
0%
Comprehensive Technical Analysis of EUVD-2026-2413 (CVE-2026-23478)
Cal.com NextAuth JWT Callback Authentication Bypass Vulnerability
1. Vulnerability Assessment & Severity Evaluation
Vulnerability Overview
EUVD-2026-2413 (CVE-2026-23478) is a critical authentication bypass vulnerability in Cal.com, an open-source scheduling platform, stemming from an improperly secured NextAuth.js JWT callback implementation. The flaw allows unauthenticated attackers to hijack any user account by manipulating the session.update() function with a target email address, effectively bypassing authentication controls.
CVSS v4.0 Severity Analysis
The vulnerability has been assigned a CVSS v4.0 Base Score of 10.0 (Critical), with the following vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L
- Attack Vector (AV:N): Exploitable remotely over a network.
- Attack Complexity (AC:L): Low complexity; no special conditions required.
- Attack Requirements (AT:N): No user interaction or prior access needed.
- Privileges Required (PR:N): No privileges required (unauthenticated).
- User Interaction (UI:N): No user interaction required.
- Vulnerable Component (VC:H): High impact on confidentiality, integrity, and availability.
- Subsequent System Impact (SC:H/SI:H): High impact on downstream systems (e.g., calendar integrations, email systems).
- Safety (SA:L): Low safety impact (no physical harm, but severe operational disruption possible).
Severity Justification
- Authentication Bypass: Allows full account takeover without credentials.
- Unauthenticated Exploitation: No prior access or user interaction required.
- High Impact: Enables unauthorized access to sensitive scheduling data, PII, and integrated third-party services (e.g., Google Calendar, Zoom).
- Wormable Potential: Could be chained with other vulnerabilities for lateral movement in enterprise environments.
2. Potential Attack Vectors & Exploitation Methods
Root Cause Analysis
The vulnerability arises from a custom NextAuth.js JWT callback in Cal.com that fails to properly validate session updates. Specifically:
- The
session.update()function in NextAuth.js is intended to modify session data, but Cal.com’s implementation does not enforce proper authorization checks when updating theemailfield. - An attacker can craft a malicious request to overwrite the session’s email with a target user’s email, effectively impersonating them.
Exploitation Steps
- Identify Target User: The attacker needs the email address of a victim (e.g.,
admin@company.com). - Craft Malicious Request:
- Send a POST request to the NextAuth session endpoint (e.g.,
/api/auth/session). - Include a payload such as:
{ "email": "admin@company.com", "update": true }
- Send a POST request to the NextAuth session endpoint (e.g.,
- Session Hijacking:
- The vulnerable callback processes the request and updates the session’s email without re-authentication.
- The attacker is now authenticated as the victim with full access to their account.
- Post-Exploitation:
- Access sensitive scheduling data, modify appointments, or exfiltrate PII.
- Leverage integrations (e.g., Zoom, Google Calendar) for further attacks.
Proof-of-Concept (PoC) Considerations
- A PoC would involve:
- Intercepting a legitimate session token (e.g., via MITM or stolen cookies).
- Modifying the session update request to inject the target email.
- No prior authentication is required, making this a zero-click exploit in some scenarios.
3. Affected Systems & Software Versions
Vulnerable Versions
- Cal.com versions 3.1.6 to < 6.0.7 (all releases before the patch).
- NextAuth.js (used by Cal.com) is not inherently vulnerable, but the custom callback implementation in Cal.com introduces the flaw.
Scope of Impact
- Self-hosted instances of Cal.com are at risk.
- Cloud-hosted instances (if not updated) are also vulnerable.
- Integrated third-party services (e.g., Zoom, Google Calendar) may be indirectly affected if compromised accounts are used to exfiltrate data or escalate privileges.
4. Recommended Mitigation Strategies
Immediate Actions
- Upgrade to Cal.com v6.0.7 or later:
- The patch modifies the NextAuth JWT callback to enforce proper authorization checks before allowing session updates.
- Temporary Workarounds (if patching is delayed):
- Disable session updates via NextAuth configuration:
callbacks: { async session({ session, token }) { // Disable session updates return session; } } - Rate-limit session update endpoints to prevent brute-force attacks.
- Monitor for suspicious session modifications (e.g., unexpected email changes).
- Disable session updates via NextAuth configuration:
Long-Term Security Recommendations
- Code Review & Secure Development:
- Audit all custom NextAuth callbacks for proper authorization checks.
- Implement session validation middleware to verify user identity before updates.
- Enhanced Authentication Controls:
- Enforce multi-factor authentication (MFA) for all accounts.
- Use short-lived JWTs with strict expiration policies.
- Network-Level Protections:
- Deploy Web Application Firewalls (WAFs) to detect and block anomalous session update requests.
- Implement IP-based rate limiting on authentication endpoints.
- Monitoring & Incident Response:
- Log and alert on unexpected session modifications.
- Conduct post-exploitation forensics to detect account takeovers.
5. Impact on the European Cybersecurity Landscape
Regulatory & Compliance Implications
- GDPR (General Data Protection Regulation):
- Unauthorized access to scheduling data may constitute a personal data breach (Article 33).
- Organizations must report incidents within 72 hours if PII is compromised.
- NIS2 Directive (Network and Information Security):
- Critical infrastructure sectors (e.g., healthcare, finance) using Cal.com may face enhanced scrutiny if breached.
- Mandates incident reporting and risk management measures.
- DORA (Digital Operational Resilience Act):
- Financial entities must ensure third-party risk management for scheduling tools.
Threat Landscape Considerations
- Targeted Attacks on Enterprises:
- Attackers may exploit this flaw to compromise executive calendars, leading to business email compromise (BEC) or insider threats.
- Supply Chain Risks:
- Cal.com is widely used in European tech startups and SMEs; a single breach could have cascading effects.
- Ransomware & Extortion:
- Stolen scheduling data could be used for blackmail or ransomware attacks (e.g., threatening to leak sensitive meeting details).
ENISA & National CSIRT Coordination
- ENISA (European Union Agency for Cybersecurity) may issue advisories for critical infrastructure operators.
- National CSIRTs (e.g., CERT-EU, BSI, ANSSI) may prioritize this vulnerability in threat intelligence sharing.
- Public Sector Risk: Government agencies using Cal.com must patch immediately to avoid espionage risks.
6. Technical Details for Security Professionals
Vulnerable Code Analysis
The flaw resides in Cal.com’s custom NextAuth JWT callback, likely in a file such as pages/api/auth/[...nextauth].ts. A vulnerable implementation may look like:
callbacks: {
async jwt({ token, user }) {
if (user) {
token.email = user.email; // No re-validation on updates
}
return token;
},
async session({ session, token }) {
session.user.email = token.email; // Direct assignment without checks
return session;
}
}
Key Issues:
- No re-authentication when updating
email. - No session ownership validation (any user can modify any session).
Exploitation Payload Example
An attacker could exploit this via:
POST /api/auth/session HTTP/1.1
Host: vulnerable-calcom-instance.com
Content-Type: application/json
Cookie: next-auth.session-token=STOLEN_SESSION_TOKEN
{
"email": "admin@target-company.com",
"update": true
}
Result: The attacker’s session is now authenticated as admin@target-company.com.
Detection & Forensic Indicators
- Logs to Monitor:
- Unexpected
session.update()calls with different email addresses. - Multiple failed login attempts followed by a successful session update.
- Unexpected
- Forensic Artifacts:
- Modified
next-auth.session-tokencookies. - Unusual access patterns (e.g., a user suddenly accessing multiple accounts).
- Modified
Defensive Coding Best Practices
- Enforce Session Ownership:
async session({ session, token }) { if (session.user.email !== token.email) { throw new Error("Unauthorized session modification"); } return session; } - Require Re-Authentication for Sensitive Updates:
- Use short-lived tokens and MFA challenges before allowing email changes.
- Implement Rate Limiting:
- Restrict session update requests to 1 per minute per IP.
Conclusion
EUVD-2026-2413 (CVE-2026-23478) is a critical authentication bypass vulnerability in Cal.com with severe implications for European organizations. Immediate patching is mandatory, and affected entities must conduct incident response assessments to detect potential breaches. Given the high CVSS score (10.0) and ease of exploitation, this vulnerability poses a significant risk to both data privacy and operational security.
Recommended Next Steps:
- Patch all Cal.com instances to v6.0.7+.
- Audit authentication logs for signs of exploitation.
- Enhance monitoring for session hijacking attempts.
- Review GDPR/NIS2 compliance in light of potential breaches.
For further details, refer to the official advisory: 🔗 GitHub Security Advisory GHSA-7hg4-x4pr-3hrg