Read the docs

Cross-site scripting in Docutils via unescaped image alt text

Priority LOW 21CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed Docutils (docutils): 0.23.1

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

VendorProductAffected versionsFixed inStatusSource
docutilsDocutilsbefore 0.23.10.23.1Patch availableCNA
  • Docutils Vendordocutils Affected before 0.23.1 Fixed in 0.23.1 Patch available CNA

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

  1. 2026-12-04 Threatist record created from CVE-2026-144966
  2. 2026-12-04 CISA SSVC decision points changed
  3. 2026-12-04 Alias added: GHSA-v94f-35v7-v735

References

  • 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