CVE-2026-40865 Horilla: Insecure Direct Object Reference at `/employee/view-file/<int:id>

High 7.1 Published Updated

Authenticated users can access other employees' sensitive HR documents by manipulating the document ID in the request.

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-40865?

CVE-2026-40865 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 viewer allows any authenticated user to access other employees’ uploaded documents by changing the document ID in the request. This exposes sensitive HR files such as identity documents, contracts, certificates, and other private employee records.

Weakness: CWE-639, CWE-284

Which versions are affected by CVE-2026-40865?

How do I fix CVE-2026-40865?

No fix has been published for CVE-2026-40865 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-40865 being exploited?

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

Sources

Also known as GHSA-85cj-fwjh-fjv7.

Is CVE-2026-40865 in your software?

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

Check your SBOMs for free