{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "14.58.0"
              },
              {
                "introduced": "15.0.0"
              },
              {
                "fixed": "15.4.0"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8242b3ee316959501ee9cacd7fd11547f978222e"
            },
            {
              "introduced": "b8c1f492c492f7cbbfd3cc768234fbb244fd3737"
            },
            {
              "fixed": "3858b59367953f36a185ad82e14b00d7422ab34b"
            }
          ],
          "repo": "https://github.com/frappe/frappe",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-v248-pv3c-jvgw"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58391.json"
  },
  "details": "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.",
  "id": "CVE-2024-58391",
  "modified": "2026-10-15T02:30:24.940338901Z",
  "published": "2026-10-12T22:21:45.089Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58391.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/frappe/security/advisories/GHSA-v248-pv3c-jvgw"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58391"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/frappe-before-15.4.0-xss-via-printview-parameters"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Frappe before 15.4.0 XSS via Printview Parameters"
}