Advisories for Pypi/Django-Docutils package

2026

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

django-docutils before 0.30.0 rendered reStructuredText through Docutils without protected web-safe defaults. 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, could process attacker-controlled RST with Docutils directives that read local files, fetch URL-backed content, or emit raw HTML. The issue is fixed in 0.30.0 by disabling Docutils file insertion, raw directives, local docutils.conf processing, and unsafe URI schemes …