django-docutils 0.30.0 fixes unsafe Docutils defaults

  • django-docutils
  • Docutils
  • reStructuredText
  • SSRF
  • XSS

Version 0.30.0 addresses local file disclosure and SSRF risks

Update disables unsafe Docutils directives by default

Users should upgrade to mitigate potential XSS vulnerabilities

The django-docutils maintainers fixed unsafe Docutils defaults in version 0.30.0. Before the fix, the package rendered reStructuredText (RST), a markup format, without web-safe protections in several rendering paths, including its template tag and filter.

An attacker able to influence RST processed by a vulnerable application could make it read files accessible to the Django worker, fetch URL-backed content from the server, or emit raw HTML, potentially including scripts. The risk applies to lower-trust content such as user submissions; trusted static RST is not affected unless an attacker can influence it.

Version 0.30.0 disables file insertion, raw directives, local docutils.conf processing and unsafe URI schemes by default, and sanitizes document trees before generating HTML. The advisory identifies versions through 0.29.0 as affected and recommends upgrading to 0.30.0 or later.