django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS
CVE-2026-59988Published 19 Nov 2026, 16:43 UTC
Real-world risk
7.6/ 10High
Patch this week; within 48 h if Internet-facing
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.2
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| django-docutilsNiche | < 0.30.0 | 0.30.0 |
What to do
Update to a fixed version: 0.30.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.5% chance of exploitation in 30 days (percentile 41), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 1 × threat 0.957.600
- Rounded to one decimal between 0.1 and 107.6
Exploitation and evidence timeline
- 19 Nov 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 7.6 (cvss fallback)
Weakness
CWE-22, CWE-79, CWE-200, CWE-918
References
- https://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gpexploit, vendor-advisory
- https://github.com/tony/django-docutils/pull/457misc
- https://github.com/tony/django-docutils/commit/274caaf14c2368fafeb45f178094a34ba538f067misc
- https://github.com/tony/django-docutils/commit/57fd751a10ce2969e4ca2bde6a9094fa2e2ba0ddmisc
- https://github.com/tony/django-docutils/blob/v0.30.0/CHANGESmisc
- CVE-2026-59988 on CVE.org