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

Published Nov 19, 2026
·
Updated

django-docutils provides reStructuredText support for Django. Prior to 0.30.0, public rendering paths including publishdoctree, publishhtmlfromsource, publishhtmlfromdoctree, publishpartsfromdoctree, the {% rst %} template tag, the rst template filter, DocutilsTemplates, and DocutilsView pass lower-trust reStructuredText to Docutils without disabling fileinsertionenabled, rawenabled, 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.

Affected Software

1 affected component
pypi/django-docutils<0.30.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade django-docutils to a version that resolves this vulnerability.

    Fixed in 0.30.0

Event History

Nov 19, 2026
CVE Published
via MITRE·04:43 PM
Data Sourced
via MITRE·04:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are actually exposed?

Applications are exposed when an attacker can influence reStructuredText that is rendered through django-docutils public rendering paths. Applications that render only trusted, static reStructuredText are not affected unless an attacker can influence that content.

2

What can an attacker do with control over rendered reStructuredText?

They can use include or csv-table directives to read local files or trigger server-side URL requests. They can also use raw HTML and unsafe URI output to inject stored script-capable content.

3

Which django-docutils interfaces are implicated?

The affected public paths include 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.

4

What is the available fix?

Upgrade django-docutils to version 0.30.0, which fixes this issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203