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

High 8.6 Published Updated

Authenticated users can overwrite other employees' documents by manipulating document IDs, leading to unauthorized modification of HR records.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-40866?

CVE-2026-40866 is a high-severity missing authorization vulnerability in horilla-opensource horilla, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-639, CWE-284

Which versions are affected by CVE-2026-40866?

How do I fix CVE-2026-40866?

No fix has been published for CVE-2026-40866 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-40866 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40866 exists.

Sources

Also known as GHSA-q2qh-v828-r4p7.

Is CVE-2026-40866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free