CVE-2023-54409

Frappe before 13.46.1 XSS via html2text Weak Sanitization

Published Oct 12, 2026 CVSS 4.0 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Frappe before 13.46.1 and 14.x before 14.20.0 contains a cross-site scripting vulnerability because the html2text function weakly sanitizes user input. Authenticated attackers can supply crafted HTML that is insufficiently sanitized by html2text, executing scripts in the browsers of users who view the rendered content.

Analysis

AI-generated

Technical impact

The flaw arises because the html2text helper under sanitizes user supplied HTML, allowing script tags to survive conversion. Authenticated attackers can inject crafted HTML that, when rendered in a victim’s browser, runs arbitrary JavaScript. This client‑side code execution enables defacement, session hijacking by stealing cookies, or arbitrary phishing content. The server itself is not compromised, but the vulnerability can be used to attack anyone who views the affected content.

Affected Systems

The vulnerability affects the Frappe framework. All releases prior to version 13.46.1 in the 13.x series, and all 14.x releases before 14.20.0, are impacted. Deployments of these releases that allow arbitrary HTML to be processed by html2text are at risk.

Risk and Exploitability

The CVSS score of 5.9 indicates medium severity, focused on client‑side impact. EPSS is not available and the issue is not listed in CISA KEV, suggesting no known large‑scale exploitation. An attacker must first be authenticated to supply malicious HTML, and the malicious script only runs when an end‑user views the rendered content. This reduces the likelihood of exploitation but still presents a moderate risk if many users can view compromised content.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Frappe framework to version 13.46.1 or later, or to 14.20.0 or later for 14.x releases.
  • If an immediate upgrade is not possible, disable the html2text helper or restrict its usage so that only trusted sources can supply HTML and sanitize all user‑submitted content before conversion.
  • Enforce a strict Content‑Security‑Policy header that disallows inline scripting to inhibit any residual XSS payloads.

Generated by OpenCVE AI on October 13, 2026 at 00:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Frappe before 13.46.1 and 14.x before 14.20.0 contains a cross-site scripting vulnerability because the html2text function weakly sanitizes user input. Authenticated attackers can supply crafted HTML that is insufficiently sanitized by html2text, executing scripts in the browsers of users who view the rendered content.
Title Frappe before 13.46.1 XSS via html2text Weak Sanitization
First Time appeared Frappe
Frappe frappe
Weaknesses CWE-80
CPEs cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:*
Vendors & Products Frappe
Frappe frappe
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 1:33 PM
Reserved
Oct 12, 2026, 9:03 PM
Status
Deferred
Published
Oct 12, 2026, 11:17 PM
Modified
Oct 13, 2026, 2:17 PM