Horilla: Insecure Direct Object Reference at `/employee/view-file/
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40865
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:21 UTC · Revision 1
Source evidence
Horilla: Insecure Direct Object Reference at `/employee/view-file/
core-osv · Original sourcePublished 21 Apr 2026, 18:14 UTC
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.
osv:CVE-2026-40865
Complete source record
{
"id": "afd0328082e669ee30f8705a76f10e23ab345d47340c73e9c9fb49a5516499b8",
"url": "https://osv.dev/vulnerability/CVE-2026-40865",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Horilla: Insecure Direct Object Reference at `/employee/view-file/",
"summary": "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.",
"evidence": "osv:CVE-2026-40865",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-40865",
"aliases": [
"CVE-2026-40865",
"GHSA-85cj-fwjh-fjv7"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/horilla/horilla-hr",
"type": "GIT",
"events": [
{
"introduced": "61bd5173220d19925ad8220db9152a75c881ea73"
},
{
"last_affected": "61bd5173220d19925ad8220db9152a75c881ea73"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.5.0"
},
{
"last_affected": "1.5.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
}
],
"versions": [
"1.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40865.json"
}
}
],
"modified": "2026-10-28T02:30:29.289891161Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40865.json",
"https://github.com/horilla/horilla-hr/security/advisories/GHSA-85cj-fwjh-fjv7",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40865"
],
"provider_metadata": {
"cwe_ids": [
"CWE-284",
"CWE-639"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40865.json"
}
},
"related_cves": [
{
"value": "CVE-2026-40865",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496326,
"published_at": "2026-04-21T18:14:19.523+00:00"
}