{"id":"CVE-2026-59988","summary":"django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS","details":"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.","aliases":["GHSA-86mf-q4h5-69gp"],"modified":"2026-11-19T18:00:11.419579470Z","published":"2026-11-19T16:43:14.816Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-200","CWE-22","CWE-79","CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59988.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59988.json"},{"type":"WEB","url":"https://github.com/tony/django-docutils/blob/v0.30.0/CHANGES"},{"type":"FIX","url":"https://github.com/tony/django-docutils/commit/274caaf14c2368fafeb45f178094a34ba538f067"},{"type":"FIX","url":"https://github.com/tony/django-docutils/commit/57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd"},{"type":"FIX","url":"https://github.com/tony/django-docutils/pull/457"},{"type":"ADVISORY","url":"https://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59988"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tony/django-docutils","events":[{"introduced":"0"},{"fixed":"d9cb455d7eee974ca6a0fd71d55a4753de98a873"},{"fixed":"274caaf14c2368fafeb45f178094a34ba538f067"},{"fixed":"57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.30.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"274caaf14c2368fafeb45f178094a34ba538f067"}]},{"range":[{"fixed":"57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.29.0","v0.28.0","v0.27.0","v0.26.0","v0.25.0","v0.24.0","v0.23.0","v0.22.1","v0.22.0","v0.21.0","v0.20.1","v0.20.0","v0.19.0","v0.18.0","v0.17.0","v0.16.0","v0.15.0","v0.14.1","v0.14.0","v0.13.5","v0.13.4","v0.13.3","v0.13.2","v0.13.1","v0.13.0","v0.12.0","v0.11.0post0","v0.11.0","v0.10.0","v0.9.0","v0.8.1a0","v0.8.0","v0.7.0","v0.6.0","v0.6.0b1","v0.6.0b0","v0.5.1","v0.5.0","v0.5.0b2","v0.5.0b1","v0.4.0","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59988.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"}]}