CVE-2024-58354
CriticalCVSS 9.9Exploitation Probability (EPSS)
Low risk31th percentile - higher than 31% of all known CVEs
Summary
Vulnerability in the cal.com repository (later cal.diy) in GitHub Actions. The pr.yml workflow uses the pull_request_target trigger with default write permissions, allowing an attacker to execute arbitrary commands with the write-scoped GITHUB_TOKEN. An attacker can push commits, merge or mutate pull requests, add or delete comments, and delete or force-push branches.
Risk Assessment
Risk of full repository takeover, leading to malicious code injection and project integrity compromise.
Recommendation
No patch available. Modify the workflow to use a safer trigger (e.g., pull_request) and restrict token permissions.
Other vulnerabilities in cal.com
See all- CVE-2025-71389Critical
Cal.com (calcom/cal.diy) before version 5.9.9 is vulnerable to unauthenticated remote code execution. The application bundles a version of Next.js whose React Server Components (RSC) request handling deserializes attacker-controlled input. A remote attacker can send a crafted RSC request and cause arbitrary code execution on the server without authentication or user interaction. The flaw originates from CVE-2025-55182 in Next.js and is fixed in version 5.9.9 by updating the dependency.
- CVE-2024-58355High
Cal.com (calcom/cal.diy) through version 4.7.15 has a stored cross-site scripting (XSS) vulnerability in the single booking view (e.g., https://app.cal.com/booking/<id>). Booking-question field labels are rendered via React's dangerouslySetInnerHTML without sanitizing or escaping user input, allowing an attacker to inject arbitrary HTML/JavaScript.
- CVE-2024-58353High
XSS vulnerability in Cal.com (calcom/cal.diy) versions up to 4.7.15. Booking form field labels are rendered via React's dangerouslySetInnerHTML without proper sanitization, allowing injection of arbitrary HTML/JavaScript. Fixed in version 4.7.16.
- CVE-2023-37919Medium
Cal.com is scheduling software that has a vulnerability allowing active sessions to remain after enabling 2FA. When 2FA is activated on an account logged in on two or more devices, the other device(s) remain logged in without requiring identity verification.
Original NVD description (English source)
cal.com (calcom repository, later renamed cal.diy) is affected by a repository takeover vulnerability in its GitHub Actions workflows. The workflow pr.yml uses the pull_request_target trigger with the repository's default write permissions and passes them down to check-types.yml. check-types.yml then performs a 'dangerous' checkout of the attacker-submitted pull request code (via the dangerous-git-checkout action) and subsequently executes it (through yarn install and package.json scripts). An attacker can open a pull request whose code runs arbitrary commands with the repository's write-scoped GITHUB_TOKEN, allowing them to push commits, merge or mutate pull requests, add or delete comments, and delete or force-push branches, thereby compromising the repository. The main branch is affected; no patched version is available.

