{"id":"CVE-2026-59988","aliases":["GHSA-86mf-q4h5-69gp"],"title":"django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS","originalDescription":"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.","severity":{"cvss":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00451,"percentile":0.40934},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"django-docutils","range":"< 0.30.0","fixed":"0.30.0"},{"ecosystem":"PyPI","name":"django-docutils","range":">=0, <0.30.0","fixed":"0.30.0"}],"references":[{"url":"https://github.com/tony/django-docutils/security/advisories/GHSA-86mf-q4h5-69gp","type":"x_refsource_CONFIRM"},{"url":"https://github.com/tony/django-docutils/pull/457","type":"x_refsource_MISC"},{"url":"https://github.com/tony/django-docutils/commit/274caaf14c2368fafeb45f178094a34ba538f067","type":"x_refsource_MISC"},{"url":"https://github.com/tony/django-docutils/commit/57fd751a10ce2969e4ca2bde6a9094fa2e2ba0dd","type":"x_refsource_MISC"},{"url":"https://github.com/tony/django-docutils/blob/v0.30.0/CHANGES","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59988.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59988","type":"advisory"},{"url":"https://github.com/advisories/GHSA-86mf-q4h5-69gp","type":"other"},{"url":"https://github.com/tony/django-docutils","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-20T22:28:15.401Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59988","license":"NVD terms of use","firstSeenAt":"2026-11-19T17:23:09.086Z"},{"name":"osv","at":"2026-11-21T00:07:39.076Z","url":"https://osv.dev/vulnerability/CVE-2026-59988","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T18:29:31.941Z"},{"name":"ghsa","at":"2026-12-04T09:31:11.752Z","url":"https://github.com/advisories/GHSA-86mf-q4h5-69gp","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T00:29:05.845Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:14.467Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-59988","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T17:20:41.382Z"}],"firstSeenAt":"2026-11-19T17:20:41.382Z","publishedAt":"2026-11-19T16:43:14.816Z","modifiedAt":"2026-11-20T22:17:51.047Z"}