---
id: CVE-2024-58391
title: >-
  Frappe before 14.58.0 and 15.x before 15.4.0 contains a cross-site scripting
  vulnerability in printview because printview parameters are not escaped before
  being rendered
summary: >-
  Frappe before 14.58.0 and 15.x before 15.4.0 contains a cross-site scripting
  vulnerability in printview because printview parameters are not escaped before
  being rendered. Remote attackers can craft a malicious printview URL that,
  when v…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'
cwe:
  - CWE-79
published: '2026-10-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T23:17:18.430'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58391'
references:
  - url: 'https://github.com/frappe/frappe/security/advisories/GHSA-v248-pv3c-jvgw'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/frappe-before-15.4.0-xss-via-printview-parameters
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-13T00:09:02.608Z'
---

## Overview

Frappe before 14.58.0 and 15.x before 15.4.0 contains a cross-site scripting vulnerability in printview because printview parameters are not escaped before being rendered. Remote attackers can craft a malicious printview URL that, when visited by a victim, injects HTML and executes script in the victim's browser session.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
