Vulnerability in django-docutils Affects Public Rendering Paths
CVE-2026-59988
What is CVE-2026-59988?
The django-docutils library, which integrates reStructuredText support in Django, contains an improper input validation vulnerability affecting public rendering paths. Prior to version 0.30.0, several rendering mechanisms such as publish_doctree and templates like {% rst %} did not adequately safeguard against unsafe file inclusion and raw HTML. Malicious actors could manipulate reStructuredText inputs to execute unauthorized file reads or make server-side requests, ultimately leading to the injection of harmful scripts through crafted doctrees. The risks are minimized if only trusted static reStructuredText is rendered, although vulnerabilities remain if user influences are present. This issue has been resolved in version 0.30.0.
Affected Version(s)
django-docutils < 0.30.0
