CVE-2026-59988

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

Published Nov 19, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-86mf-q4h5-69gp django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS
History
Type Values Removed Values Added
First Time appeared Tony
Tony django-docutils
Vendors & Products Tony
Tony django-docutils
Type Values Removed Values Added
Description 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.
Title django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS
Weaknesses CWE-200
CWE-22
CWE-79
CWE-918
References
Metrics cvssV3_1

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 20, 2026, 9:26 PM
Reserved
Jul 7, 2026, 7:41 PM
Status
Received
Published
Nov 19, 2026, 5:18 PM
Modified
Nov 20, 2026, 10:17 PM