CVE-2026-79311

python-webpy: webpy: Missing autoescape in render_jinja leads to Cross-Site Scripting (XSS)

Published Sep 22, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
webpy web.py 0.76 is vulnerable to Cross Site Scripting (XSS) via render_jinja.__init__().

Analysis

AI-generated

Technical impact

The vulnerability is a reflected Cross‑Site Scripting flaw that occurs when the render_jinja.__init__() function of Web.py version 0.76 processes untrusted input without proper encoding. An attacker can embed arbitrary JavaScript that will run in the browsers of users who view a page rendered by that function. Depending on site design, this can lead to session hijacking, theft of credentials, defacement, or the delivery of phishing content, but it does not provide direct remote code execution on the server.

Affected Systems

The flaw is present in the Web.py 0.76 web framework when the render_jinja component is used. Any web application that incorporates Web.py 0.76 and relies on render_jinja.__init__() for template rendering is affected. No other product versions are listed as vulnerable.

Risk and Exploitability

The EPSS score is < 1%, indicating a low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. However, XSS vulnerabilities generally require user interaction or an infected link and are considered moderate to high risk for sites that expose untrusted data to users. The CVSS score of 6.1 indicates moderate severity for this XSS vulnerability. Attackers could exploit the flaw by delivering malicious URLs or posting crafted content that includes the vulnerable render call.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Web.py to a version where render_jinja.__init__() is fixed; refer to the project release notes for a fixed version.
  • Restrict the data passed to render_jinja by validating or sanitizing it to remove or escape JavaScript or HTML special characters. Implement input filtering on all user‑supplied fields that end up in templates.
  • Deploy a Content‑Security Policy header that limits the sources of executable script and blocks inline JavaScript to mitigate the impact if an XSS payload is delivered.

Generated by OpenCVE AI on September 26, 2026 at 06:02 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
Title Cross‑Site Scripting in Web.py 0.76 render_jinja Initialization python-webpy: webpy: Missing autoescape in render_jinja leads to Cross-Site Scripting (XSS)
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Webpy
Webpy webpy
Vendors & Products Webpy
Webpy webpy
Type Values Removed Values Added
Title Cross‑Site Scripting in Web.py 0.76 render_jinja Initialization
Weaknesses CWE-79
Type Values Removed Values Added
Description webpy web.py 0.76 is vulnerable to Cross Site Scripting (XSS) via render_jinja.__init__().
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 6, 2026, 5:43 PM
Reserved
Aug 25, 2026, 12:00 AM
Status
Deferred
Published
Sep 22, 2026, 4:17 PM
Modified
Oct 6, 2026, 6:16 PM
Severity
Moderate
Public date
Sep 22, 2026, 12:00 AM