Home › Vulnerabilities › Docutils
Docutils Flaws Let Crafted reStructuredText Expose Local Files or Inject Script
NVD published three vulnerabilities in Docutils before 0.23.1: two high-severity flaws that can embed local files into generated output, and one medium-severity cross-site scripting flaw in HTML output. All three are triggered by reStructuredText that an attacker supplies.
What to look into
- 3 vulnerabilities in Docutils: 2 high, 1 medium (CVSS up to 8.7).
- None of them is known to be exploited yet.
- Start with CVE-2026-144965 (8.7 high): Docutils before 0.23.1 contains a local file disclosure vulnerability in the HTML and ODT writers that embed image directive files despite fileinsertionenabled being disabled. Attackers supplying reS… An attacker without an account can exploit this over the network, without any user action.
- 3 of 3 can be attacked over the network without logging in, 2 of them without anyone clicking anything.
- Kinds of flaws: External Control of File Name or Path; Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'); Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Key points
- Three CVEs in Docutils before 0.23.1, published by NVD on 2026-12-04.
- CVE-2026-144965 (CVSS 8.7) lets crafted image directives embed local files in HTML and ODT output.
- CVE-2026-144963 (CVSS 8.2) allows TeX injection in the LaTeX writer that can pull in local files.
- CVE-2026-144966 (CVSS 5.3) is XSS via the image directive :alt: option in html4css1 and html5 output.
- The records do not state whether any of these flaws is being exploited.
Three vulnerabilities in Docutils, published by NVD on 2026-12-04, affect versions before 0.23.1. All three are triggered by reStructuredText content an attacker can supply, and each concerns the image directive or the writers that render it.
Flaw types
Two records describe local file disclosure. CVE-2026-144965 (HIGH, CVSS 8.7) affects the HTML and ODT writers, which according to the record embed files referenced by image directives even when fileinsertionenabled is disabled. CVE-2026-144963 (HIGH, CVSS 8.2) is a TeX injection in the LaTeX writer. Percent-encoded image URIs can close the includegraphics argument and inject an input macro, so local files can end up in compiled output even with rawenabled and fileinsertionenabled both disabled.
The third record, CVE-2026-144966 (MEDIUM, CVSS 5.3), is a cross-site scripting flaw. The :alt: option of the image directive is copied without escaping into object or video fallback content in the html4css1 and html5 writers. The record states that script can run in a viewer's browser even with rawenabled disabled.
Severity and scope
CVE-2026-144965 and CVE-2026-144963 are the most serious entries in the batch. The records do not say whether any of these flaws has been exploited, and they do not describe specific deployment conditions beyond the version boundary.
What administrators should do
Identify systems running Docutils, including build pipelines and documentation tools that render reStructuredText from untrusted sources, and move them to 0.23.1 or later, the version the records name as the boundary. The sources do not give workarounds or detection guidance, so until an upgrade is possible, limit which reStructuredText inputs are processed.
What to do
- Inventory systems that run Docutils and identify where they render reStructuredText from untrusted sources.
- Upgrade Docutils to 0.23.1 or later, the version that the records identify as fixing these flaws.
- Until upgraded, restrict which reStructuredText inputs are processed; the sources give no other workaround.
The 3 vulnerabilities
- CVE-2026-144965 8.7 Docutils before 0.23.1 contains a local file disclosure vulnerability in the HTML and ODT writers that embed image directive files despite fileinsertionenabled being disabled. Attackers supplying reStructuredText can reference arbitrary lo…
- CVE-2026-144963 8.2 Docutils before 0.23.1 contains a TeX injection vulnerability in the LaTeX writer that allows attackers supplying reStructuredText to inject TeX macros via percent-encoded image URIs. Attackers can close the includegraphics argument and in…
- CVE-2026-144966 5.3 Docutils before 0.23.1 contains a cross-site scripting vulnerability that allows attackers supplying reStructuredText to inject HTML through the image directive's :alt: option. The html4css1 and html5 writers copy unescaped alt text into o…
Frequently asked questions
How many Docutils vulnerabilities were published on December 4, 2026?
3 vulnerabilities: 2 high, 1 medium, with CVSS scores up to 8.7.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-144965 (CVSS 8.7): Docutils before 0.23.1 contains a local file disclosure vulnerability in the HTML and ODT writers that embed image directive files despite fileinsertionenabled being disabled. Attackers supplying reS…