Read the docs

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

Priority HIGH 75CWE-200Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure, Cross-site scripting
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200 and CWE-79.

Summary

django-docutils passes reStructuredText to Docutils without disabling file insertion, raw HTML, ambient docutils.conf processing, or unsafe URI schemes in its public rendering paths, including publish_html_from_source, the {% rst %} template tag and the rst template filter. An attacker who can influence the rendered reStructuredText can use include or csv-table directives to read local files (CWE-22, CWE-200) or make server-side URL requests (CWE-918). Raw HTML and unsafe URI output can also inject stored script-capable content (CWE-79). Applications that render only trusted static reStructuredText are not affected unless attackers can influence it.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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 now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00457 31st percentileScored 2026-11-30
Fix Fixed django-docutils (tony): 0.30.0django-docutils (PyPI): 0.30.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
tonydjango-docutilsbefore 0.30.00.30.0Patch availableCNA
—django-docutils (PyPI)before 0.30.00.30.0Patch availableGHSA-86mf-q4h5-69gp
  • django-docutils Vendortony Affected before 0.30.0 Fixed in 0.30.0 Patch available CNA
  • django-docutils (PyPI) Vendor— Affected before 0.30.0 Fixed in 0.30.0 Patch available GHSA-86mf-q4h5-69gp

Remediation

Upgrade django-docutils to version 0.30.0 or later.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA django-docutils (tony) Fixed in 0.30.0
  • Fix · GHSA-86mf-q4h5-69gp django-docutils (PyPI) Fixed in 0.30.0 Advisory →

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-59988
  2. 2026-11-20 Alias added: GHSA-86mf-q4h5-69gp
  3. 2026-11-20 Fix available: PyPI/[email protected] · GHSA-86mf-q4h5-69gp
  4. 2026-11-20 CVSS score added · GHSA-86mf-q4h5-69gp
  5. 2026-11-20 Weakness changed · GHSA-86mf-q4h5-69gp
  6. 2026-11-20 7 new references · GHSA-86mf-q4h5-69gp
  7. 2026-11-20 CISA SSVC decision points changed

References

Sources