django-docutils unsafe defaults allow file disclosure, SSRF, stored XSS
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tony | django-docutils | before 0.30.0 | 0.30.0 | Patch available | CNA |
| — | django-docutils (PyPI) | before 0.30.0 | 0.30.0 | Patch available | GHSA-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
- 2026-11-19 Threatist record created from CVE-2026-59988
- 2026-11-20 Alias added: GHSA-86mf-q4h5-69gp
- 2026-11-20 Fix available: PyPI/[email protected] · GHSA-86mf-q4h5-69gp
- 2026-11-20 CVSS score added · GHSA-86mf-q4h5-69gp
- 2026-11-20 Weakness changed · GHSA-86mf-q4h5-69gp
- 2026-11-20 7 new references · GHSA-86mf-q4h5-69gp
- 2026-11-20 CISA SSVC decision points changed
References
Other 6
- https://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gp
- https://github.com/tony/django-docutils/pull/457
- https://github.com/tony/django-docutils/commit/274caaf14c2368fafeb45f178094a34ba538f067
- https://github.com/tony/django-docutils/commit/57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd
- https://github.com/tony/django-docutils/blob/v0.30.0/CHANGES
- https://github.com/tony/django-docutils
Sources
- CVE-2026-59988 · CVE Program
- CVE-2026-59988 · NVD
- FIRST EPSS
- GHSA-86mf-q4h5-69gp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences