Cross-site scripting in Docutils via unescaped image alt text
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Docutils before 0.23.1 contains a cross-site scripting flaw in its HTML writers. The html4css1 and html5 writers copy the image directive's :alt: text into object or video fallback content without escaping it, so a crafted reStructuredText document can inject script elements. An unauthenticated remote attacker needs user interaction, such as a victim viewing the rendered page, and the script runs in the viewer's browser even when raw HTML is disabled (CWE-79).
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Docutils to version 0.23.1 or later. CVE-2026-144966 and GHSA-v94f-35v7-v735 are the record identifiers for this flaw, and no separate vendor advisory is listed in the sources.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA Docutils (docutils) Fixed in 0.23.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Docutils 0.23.1
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-104173 Local file disclosure in Docutils via image directivesPriority MEDIUM 53
- TI-2026-104171 TeX injection in Docutils LaTeX writer embeds local filesPriority LOW 33
Timeline
- 2026-12-04 Threatist record created from CVE-2026-144966
- 2026-12-04 CISA SSVC decision points changed
- 2026-12-04 Alias added: GHSA-v94f-35v7-v735
References
Other 3
- https://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/html4css1/__init__.py#L617-L620
- https://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/_html_base.py#L1200-L1211
- https://pypi.org/project/docutils/0.23.1/
More docutils vulnerabilities
- TI-2026-104173 Local file disclosure in Docutils via image directives CVSS 4.0HIGH 8.7
- TI-2026-104171 TeX injection in Docutils LaTeX writer embeds local files CVSS 4.0HIGH 8.2
Sources
- CVE-2026-144966 · CVE Program
- CVE-2026-144966 · NVD
- GHSA-v94f-35v7-v735 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences