Docutils before 0.23.1 XSS via Unescaped Image Alt Text in HTML Writers
- CVE-2026-144966
- EUVD-2026-144247
Summary
Docutils versions before 0.23.1 contain a cross-site scripting vulnerability. Attackers who can supply reStructuredText can use the image directive's :alt: option to inject HTML. The html4css1 and html5 writers copy this alt text unescaped into object or video fallback content, so script elements run in the browsers of people viewing the output. The issue occurs even when raw_enabled is disabled. The record gives a CVSS score of 6.1 and states the flaw is not on the CISA Known Exploited Vulnerabilities list. Engineers who render untrusted reStructuredText with these writers should plan to upgrade to 0.23.1 or later.
AI summary · verify against the vendor advisory
Description
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 object or video fallback content, so script elements execute in viewers' browsers even with raw_enabled disabled.
Text from the CVE.org record.
Recommendation
Docutils
- If you run a version before 0.23.1update to 0.23.1 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Docutils
Affected versions Fixed in before 0.23.1 0.23.1
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.