{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:frappe:frappe_hr:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "15.58.2"
              },
              {
                "introduced": "16.0.0"
              },
              {
                "fixed": "16.4.2"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "dd6c388f71d38dd4b92cd0d19178a27f19acfab6"
            },
            {
              "introduced": "19a835b7ca10132365a8707931d65381aa68a846"
            },
            {
              "fixed": "7780627709b2352d4b6709c0dba33d024ddf2c76"
            }
          ],
          "repo": "https://github.com/frappe/hrms",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6cg5-4q6m-vrgm"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40889.json"
  },
  "details": "Frappe HR is an open-source human resources management solution (HRMS). Prior to versions 15.58.2 and 16.4.2, authenticated users can access unauthorized files by exploiting certain api endpoint. Versions 15.58.2 and 16.4.2 contain a patch. No known workarounds are available.",
  "id": "CVE-2026-40889",
  "modified": "2026-07-08T05:37:22.071336559Z",
  "published": "2026-04-21T19:32:52.106Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/hrms/releases/tag/v15.58.2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/frappe/hrms/releases/tag/v16.4.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40889.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/hrms/security/advisories/GHSA-6cg5-4q6m-vrgm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40889"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Frappe HR has Improper Access Control on Files"
}