# CVE-2024-58391: Frappe cross-site scripting in printview

Source: https://junglewise.ai/threats/cve-2024-58391-frappe-before-14-58-0-and-15-x-before-15-4-0-contains-a-cross  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-12. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2024-58391 · Severity: medium · CVSS 4.3 · Published 2026-10-12

Frappe is a web-based framework used to build enterprise applications and manage business data. A cross-site scripting flaw in the printview feature allows attackers to craft a malicious URL that, when clicked by a user, executes malicious JavaScript in their browser and potentially steals sensitive session data or performs actions on their behalf.

Technologies: [Frappe](https://junglewise.ai/threats/technologies/frappe). Vendors: [Frappe](https://junglewise.ai/threats/vendors/frappe).

## Quick answers

**Is CVE-2024-58391 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-58391 being exploited in the wild.

**How severe is CVE-2024-58391?** Medium severity, with a CVSS score of 4.3, published 12 October 2026.

**Which products and versions are affected?** Frappe before 14.58.0 and 15.x before 15.4.0.

**Is there a fix for CVE-2024-58391?** Yes: fixed in Frappe 14.58.0, 15.4.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-58391 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2024-58391?** Check whether you run Frappe at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Frappe 14.58.0, 15.4.0

## Technical details

The printview functionality fails to escape user-supplied parameters before rendering them in HTML, enabling stored or reflected cross-site scripting (XSS). An unauthenticated attacker can craft a malicious printview URL containing JavaScript payloads that execute in a victim's browser with the victim's session privileges. User interaction is required (clicking a malicious link).

## Affected products

- Frappe Frappe before 14.58.0 and 15.x before 15.4.0

## Timeline

- 2024-02-06: disclosed
- 2024-10-12: advisory

## References

- [https://github.com/frappe/frappe/security/advisories/GHSA-v248-pv3c-jvgw](https://github.com/frappe/frappe/security/advisories/GHSA-v248-pv3c-jvgw)
- [https://www.vulncheck.com/advisories/frappe-before-15.4.0-xss-via-printview-parameters](https://www.vulncheck.com/advisories/frappe-before-15.4.0-xss-via-printview-parameters)

## Related threats

- [Frappe path traversal in file upload](https://junglewise.ai/threats/cve-2026-119145-frappe-before-15-121-0-and-16-x-before-16-34-0-contains-a-path)
- [Frappe open redirect in OAuth login flow](https://junglewise.ai/threats/cve-2026-66057-frappe-is-a-full-stack-web-application-framework-prior-to-15-116)
- [Frappe SQL injection in reportview get_count method](https://junglewise.ai/threats/cve-2026-55823-frappe-is-a-full-stack-web-application-framework-prior-to-16-23-0)
- [Frappe missing authorization in record modification](https://junglewise.ai/threats/cve-2026-109599-frappe-before-15-113-3-and-16-x-before-16-25-0-contains-a)
- [Frappe LDAP injection in endpoint parameters](https://junglewise.ai/threats/cve-2025-71431-frappe-before-14-99-2-and-15-x-before-15-86-0-contains-an-ldap)
