CVE-2026-59988
Received Received - Intake

Path Traversal and SSRF in django-docutils via Unsafe reStructuredText

Vulnerability report for CVE-2026-59988, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-20
AI Q&A
2026-11-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
django django-docutils 0.30.0
django django-docutils to 0.30.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-918 The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in django-docutils (CVE-2026-59988) allows attackers to exploit unsafe default settings in reStructuredText (RST) rendering. Untrusted RST content can be used to read local files, make server-side URL requests, or inject raw HTML/JavaScript via directives like include, csv-table, or raw HTML. The issue occurs because rendering paths do not disable unsafe features such as file insertion or raw directive processing.

Impact Analysis

If you use django-docutils to render untrusted RST content, attackers could access sensitive files on your server, make unauthorized network requests, or inject malicious scripts into web pages. This could lead to data breaches, server compromise, or cross-site scripting attacks affecting users.

Compliance Impact

This vulnerability could violate GDPR by exposing personal data through file reads or SSRF, and HIPAA by allowing unauthorized access to protected health information. Non-compliance may result from unauthorized data access or script injection leading to data leaks.

Mitigation Strategies
  • Upgrade django-docutils to version 0.30.0 or later to apply the security fixes.
  • Review and update your application's RST rendering paths to ensure they use the new secure defaults.
  • If your application relies on previously unsafe features for trusted static content, explicitly enable them using the allow_unsafe_docutils_settings flag.
  • Audit your application for any use of the {% rst %} template tag, rst template filter, DocutilsTemplates, or DocutilsView to ensure they are configured securely.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59988. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...