Skip to content
DayZeroHub
High Not yet writtenCVSS 8.2GHSA-86mf-q4h5-69gpCVE-2026-59988

CVE-2026-59988: django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS

tony django-docutils

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-59988: high-severity vulnerability (CVSS 8.2) in tony django-docutils.

What happened

Original description from the source: django-docutils provides reStructuredText support for Django. Prior to 0.30.0, 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 pass lower-trust reStructuredText to Docutils without disabling file_insertion_enabled, raw_enabled, ambient docutils.conf processing, or unsafe URI schemes and without consistently sanitizing doctrees. An attacker who can influence rendered reStructuredText can use include or csv-table directives to read local files or cause server-side URL requests, or use raw HTML and unsafe URI output to inject stored script-capable content. Applications that render only trusted static reStructuredText are not affected unless attackers can influence it. This issue is fixed in version 0.30.0.

Why it matters

High severity, CVSS 8.2.

Affected products and versions

django-docutils < 0.30.0 (fixed in 0.30.0); tony django-docutils < 0.30.0

ProductVersionsFixed in
django-docutils< 0.30.00.30.0
tony django-docutils< 0.30.0—

Action recommended by the source

Upgrade to a fixed version: 0.30.0.

Fixed in: 0.30.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22, CWE-79, CWE-200, CWE-918

Relevant change history

  1. Published

    Preliminary advisory published.