All vulnerabilities

PyPI

CVE-2026-59988

django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS

Severity
High 8.2
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.30.0
Exploit chance
0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure (CWE-200)Path traversal (CWE-22)Cross-site scripting (CWE-79)Server-side request forgery (CWE-918)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Also known as
GHSA-86mf-q4h5-69gp
Sources
OSV.dev and GitHub

Description

django-docutils before 0.30.0 rendered reStructuredText through Docutils without protected web-safe defaults. Public rendering paths, including publish_doctree, publish_html_from_source, publish_html_from_doctree, publish_parts_from_doctree, the {% rst %} template tag, the rst template filter, DocutilsTemplates, and DocutilsView, could process attacker-controlled RST with Docutils directives that read local files, fetch URL-backed content, or emit raw HTML.

The issue is fixed in 0.30.0 by disabling Docutils file insertion, raw directives, local docutils.conf processing, and unsafe URI schemes by default, and by sanitizing doctrees before HTML is emitted.

Applications are affected when they render attacker-controlled or lower-trust RST through django-docutils without their own safe Docutils configuration. Applications that only render trusted static RST are not affected unless that content can be influenced by an attacker.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
django-docutilsPyPI · osv:PyPI:django-docutils
  • Every version before 0.30.0

About django-docutils

Weekly downloads (PyPI)
407PyPI Stats, 24 Nov 2026

This is the only vulnerability in django-docutils in our list.

References