CVE-2026-144966: Docutils before 0.23.1 XSS via Unescaped Image Alt Text in HTML Writers

Published Dec 4, 2026
·
Updated

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 rawenabled disabled.

Affected Software

1 affected component
pypi/docutils<0.23.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade docutils to a version that resolves this vulnerability.

    Fixed in 0.23.1

Event History

Dec 4, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that accept reStructuredText from untrusted users and render it with Docutils' html4css1 or html5 writers are exposed. The injected content executes in the browsers of people viewing the generated HTML.

2

Does disabling raw markup prevent exploitation?

No. The issue is reachable through the image directive's :alt: option even when raw_enabled is disabled.

3

What does an attacker need to exploit it?

An attacker needs a way to supply reStructuredText that the application converts to HTML using an affected writer, and a victim must view the resulting HTML. No authentication is required according to the supplied vector.

4

Which versions are affected?

Docutils versions before 0.23.1 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203