{"vuln_id":"GHSA-86mf-q4h5-69gp","aliases":["CVE-2026-59988"],"description":"django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS","published_at":"2026-11-20T00:08:12Z","modified_at":"2026-11-20T00:15:05.528596Z","first_seen_at":"2026-11-21T19:15:19.334648Z","severity":"high","severity_source":"ghsa","cvss_score":8.2,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","cwe":["CWE-22","CWE-79","CWE-200","CWE-918"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-86mf-q4h5-69gp"},"matched_alias":null,"items":[{"id":10685,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-86mf-q4h5-69gp: django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS","summary":"django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS\n\n## Summary\n\ndjango-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.\n\nThe issue is fixed in `0.30.0` by disabling Docutils file insertion, raw directives, local `docutils.conf` processing, and unsafe URI schemes by default, and by sanitizing doctrees before HTML is emitted.\n\nApplications are affected when they render attacker-controlled or lower-trust RST through django-docutils without their own safe Docutils configuration. Applications that only render trusted static RST are not affected unless that content can be influenced by an attacker.\n\n## Impact\n\nAn attacker who can influence RST rendered by a vulnerable django-docutils integration may be able to read files readable by the Django worker process, trigger server-side requests through URL-backed directives, or inject raw HTML/JavaScript into rendered output.\n\nExamples of affected application patterns include comments, wiki pages, blog bodies, profile or biography fields, CMS fields, uploaded RST documents, API-supplied RST, or overridden view content methods that return user-supplied RST.\n\nPotential impact includes disclosure of application configuration, environment files, credentials, source files, templates, mounted secrets, and logs readable by the process. UI escaping after rendering is not sufficient for file disclosure because the server-side read occurs before HTML reaches the client.\n\n## Affected versions\n\nAffected package: `django-docutils` on PyPI\n\nAffected versions: `<= 0.29.0`\n\nPatched versions: `>= 0.30.0`\n\n## Technical details\n\nBefore `0.30.0`, django-docutils handed RST content to Docutils without forcing these web-safe settings:\n\n```python\n{\n\"file_insertion_enabled\": False,\n\"raw_enabled\": False,\n\"_disable_config\": True,\n}\n```\n\nDocutils treats file insertion and raw content as legitimate features for trusted documents. In a web application that renders lower-trust RST, those defaults can expose server-side data or emit attacker-controlled HTML unless the application disables the features.\n\nThe vulnerable behavior included:\n\n- `.. include::\n` reading local files\n- `.. include::\n` fetching URL-backed content server-side\n- `.. csv-table:: :file:` reading local files\n- `.. csv-table:: :url:` fetching URL-backed content server-side\n- `.. raw:: html` emitting unescaped HTML\n- `.. raw:: html :file:` reading and emitting file-backed raw content\n- local `docutils.conf` configuration re-enabling unsafe behavior\n\n## Proof of concept\n\nThis minimal harness uses the public `{% rst %}` template tag. On vulnerable versions, the include directive expands\n\nAffected: PyPI:django-docutils\n\nFixed in: 0.30.0\n\nReferences:\nhttps://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gp\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-59988\nhttps://github.com/tony/django-docutils/pull/457\nhttps://github.com/tony/django-docutils/commit/274caaf14c2368fafeb45f178094a34ba538f067\nhttps://github.com/tony/django-docutils/commit/57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd\nhttps://github.com/tony/django-docutils\nhttps://github.com/tony/django-docutils/blob/v0.30.0/CHANGES","url":"https://osv.dev/vulnerability/GHSA-86mf-q4h5-69gp","published_at":"2026-11-20T00:08:12Z","updated_at":"2026-11-20T00:15:05.528596Z","fetched_at":"2026-11-21T19:15:55.946102Z","severity":"high","cvss_score":8.2,"epss":0.00451,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"django-docutils","vuln_id":"CVE-2026-59988","vuln_ids":["CVE-2026-59988","GHSA-86MF-Q4H5-69GP"],"tags":["osv","pypi","fix-available"],"cluster_id":2110,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10685","html":"https://vulnwatch.ve1ve2.com/item/10685"}},{"id":2339,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-86mf-q4h5-69gp / CVE-2026-59988: django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS","summary":"django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS\n\n## Summary\n\ndjango-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.\n\nThe issue is fixed in `0.30.0` by disabling Docutils file insertion, raw directives, local `docutils.conf` processing, and unsafe URI schemes by default, and by sanitizing doctrees before HTML is emitted.\n\nApplications are affected when they render attacker-controlled or lower-trust RST through django-docutils without their own safe Docutils configuration. Applications that only render trusted static RST are not affected unless that content can be influenced by an attacker.\n\n## Impact\n\nAn attacker who can influence RST rendered by a vulnerable django-docutils integration may be able to read files readable by the Django worker process, trigger server-side requests through URL-backed directives, or inject raw HTML/JavaScript into rendered output.\n\nExamples of affected application patterns include comments, wiki pages, blog bodies, profile or biography fields, CMS fields, uploaded RST documents, API-supplied RST, or overridden view content methods that return user-supplied RST.\n\nPotential impact includes disclosure of application configuration, environment files, credentials, source files, templates, mounted secrets, and logs readable by the process. UI escaping after rendering is not sufficient for file disclosure because the server-side read occurs before HTML reaches the client.\n\n## Affected versions\n\nAffected package: `django-docutils` on PyPI\n\nAffected versions: `<= 0.29.0`\n\nPatched versions: `>= 0.30.0`\n\n## Technical details\n\nBefore `0.30.0`, django-docutils handed RST content to Docutils without forcing these web-safe settings:\n\n```python\n{\n\"file_insertion_enabled\": False,\n\"raw_enabled\": False,\n\"_disable_config\": True,\n}\n```\n\nDocutils treats file insertion and raw content as legitimate features for trusted documents. In a web application that renders lower-trust RST, those defaults can expose server-side data or emit attacker-controlled HTML unless the application disables the features.\n\nThe vulnerable behavior included:\n\n- `.. include::\n` reading local files\n- `.. include::\n` fetching URL-backed content server-side\n- `.. csv-table:: :file:` reading local files\n- `.. csv-table:: :url:` fetching URL-backed content server-side\n- `.. raw:: html` emitting unescaped HTML\n- `.. raw:: html :file:` reading and emitting file-backed raw content\n- local `docutils.conf` configuration re-enabling unsafe behavior\n\n## Proof of concept\n\nThis minimal harness uses the public `{% rst %}` template tag. On vulnerable versions, the include directive expands\n\nAffected packages: pip:django-docutils\nPatched: django-docutils 0.30.0","url":"https://github.com/advisories/GHSA-86mf-q4h5-69gp","published_at":"2026-11-20T00:08:12Z","updated_at":"2026-11-20T00:08:12Z","fetched_at":"2026-11-21T19:15:18.416761Z","severity":"high","cvss_score":8.2,"epss":0.00451,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"django-docutils","vuln_id":"CVE-2026-59988","vuln_ids":["CVE-2026-59988","GHSA-86MF-Q4H5-69GP"],"tags":["ghsa","pip","CWE-22","CWE-79","CWE-200","CWE-918"],"cluster_id":2110,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2339","html":"https://vulnwatch.ve1ve2.com/item/2339"}},{"id":9006,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-59988: django-docutils provides reStructuredText support for Django. Prior to 0.30.0, public rendering paths including publish_doctree, publish_html_from_source, publ…","summary":"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.\n\nReferences:\nhttps://github.com/tony/django-docutils/blob/v0.30.0/CHANGES\nhttps://github.com/tony/django-docutils/commit/274caaf14c2368fafeb45f178094a34ba538f067\nhttps://github.com/tony/django-docutils/commit/57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd\nhttps://github.com/tony/django-docutils/pull/457\nhttps://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gp\nhttps://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gp","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59988","published_at":"2026-11-19T17:18:58.550000Z","updated_at":"2026-11-20T22:17:51.047000Z","fetched_at":"2026-11-21T19:15:31.484664Z","severity":"high","cvss_score":8.2,"epss":0.00451,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-59988","vuln_ids":["CVE-2026-59988","GHSA-86MF-Q4H5-69GP"],"tags":["CWE-22","CWE-79","CWE-200","CWE-918"],"cluster_id":2111,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9006","html":"https://vulnwatch.ve1ve2.com/item/9006"}}]}