{"answers":{"affected":"2 open source packages ship an affected version, including kimai/kimai. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42267 exists.","fix":"Upgrade kimai/kimai to 2.54.0 or later.","what":"CVE-2026-42267 is a medium-severity code injection vulnerability in kimai, published on 8 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42267 and fix it if it is affected.\n\nWhat it is: CVE-2026-42267 is a medium-severity code injection vulnerability in kimai, published on 8 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42267 exists.\n\nAffected packages and fixed versions:\n- kimai/kimai (Packagist): affected from 2.27.0; fixed in 2.54.0\n- kimai/kimai (Packagist): affected from 2.27.0; fixed in 2.54.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42267/ (Markdown: https://insights.sbomify.com/CVE-2026-42267/index.md)","id":"CVE-2026-42267","markdown":"https://insights.sbomify.com/CVE-2026-42267/index.md","name":"CVE-2026-42267","record":{"aliases":["GHSA-3xc2-h5r3-wv3r"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Kimai time tracking","requires_auth":"low_privilege","summary":"Attackers can inject malicious formulas into XLSX exports via tag names, leading to code execution when admins open the file.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kimai","vendor":"kimai"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-1236","name":"Improper Neutralization of Formula Elements in a CSV File"}],"description":"Kimai is an open-source time tracking application. From version 2.27.0 to before version 2.54.0, any ROLE_USER can create a tag with a formula string as its name (e.g. =SUM(54+51)) via POST /api/tags and assign it to a timesheet. When an admin exports timesheets to XLSX, ArrayFormatter.formatValue() joins tag names with implode() and returns the result unchanged. OpenSpout promotes any =-prefixed string to a FormulaCell, writing \u003cf\u003eSUM(54+51)\u003c/f\u003e into the XLSX archive. Excel evaluates the formula when the file is opened. This issue has been patched in version 2.54.0.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Kimai: Formula Injection via tag names in XLSX export","id":"CVE-2026-42267","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"ModSecurity: Unsigned integer underflow in @verifySSN / @verifyCPF / @verifySVNR operators","id":"CVE-2026-42268"},"packages":[{"ecosystem":"Packagist","fixed":["2.54.0"],"introduced":["2.27.0"],"last_affected":[],"package":"kimai/kimai","purl":null,"source":"GHSA-3xc2-h5r3-wv3r"},{"ecosystem":"Packagist","fixed":["2.54.0"],"introduced":["2.27.0"],"last_affected":[],"package":"kimai/kimai","purl":"pkg:composer/kimai/kimai","source":"GHSA-3xc2-h5r3-wv3r"}],"prev":{"headline":"JupyterLab has an Extension Manager API/GUI Policy Discrepancy, allowing 3rd party (malicious) extensions install via POST request","id":"CVE-2026-42266"},"products":["kimai"],"published":"2026-05-08","related":[{"cvss_score":9.6,"headline":"Cross-site Scripting in kimai/kimai","id":"CVE-2020-19825","kev_date_added":null,"published":"2023-02-15"},{"cvss_score":8.5,"headline":"Kimai 1.30.10 SameSite Cookie Vulnerability Session Hijacking","id":"CVE-2023-53957","kev_date_added":null,"published":"2025-12-19"},{"cvss_score":7.8,"headline":"Improper Neutralization of Formula Elements in a CSV File in Kimai 2","id":"CVE-2021-43515","kev_date_added":null,"published":"2022-04-08"},{"cvss_score":7.2,"headline":"Kimai (Authenticated) SSTI to RCE by Uploading a Malicious Twig File","id":"CVE-2023-46245","kev_date_added":null,"published":"2023-10-31"},{"cvss_score":6.8,"headline":"Kimai Vulnerable to Authenticated Server-Side Template Injection (SSTI)","id":"CVE-2026-23626","kev_date_added":null,"published":"2026-01-18"},{"cvss_score":6.8,"headline":"API returns timesheet entries a user should not be authorized to view","id":"CVE-2024-29200","kev_date_added":null,"published":"2024-03-28"},{"cvss_score":6.5,"headline":"Kimai: API invoice endpoint missing customer-level access control (IDOR)","id":"CVE-2026-28685","kev_date_added":null,"published":"2026-03-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["kimai"]},"summary":"Attackers can inject malicious formulas into XLSX exports via tag names, leading to code execution when admins open the file.","url":"https://insights.sbomify.com/CVE-2026-42267/"}