Skip to content
High 8.2

django-docutilsに任意のローカルファイルの読み取りや保存型XSSの脆弱性

CVE-2026-59988 First seen on SecPulse

Summary

django-docutilsの0.30.0より前の版では、信頼されていないreStructuredTextを描画すると、ローカルファイルを読み取られたり、サーバーから任意のURLへリクエストを送られたり、保存型XSSが起きたりするおそれがあります。修正版の0.30.0が公開されているので、該当する版を使っている場合は更新してください。描画する文章を外部から変えられない運用なら影響は限定的ですが、早めの更新をおすすめします。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

django-docutilsの0.30.0より前の版では、信頼されていないreStructuredTextを描画すると、ローカルファイルを読み取られたり、サーバーから任意のURLへリクエストを送られたり、保存型XSSが起きたりするおそれがあります。修正版の0.30.0が公開されているので、該当する版を使っている場合は更新してください。描画する文章を外部から変えられない運用なら影響は限定的ですが、早めの更新をおすすめします。

Affected packages

PackageAffected → Fixed
tonydjango-docutils —
PyPIdjango-docutils
< 0.30.0→ 0.30.0
pipdjango-docutils
< 0.30.0→ 0.30.0
Original description The description as published by the source.

Summary

django-docutils before 0.30.0 rendered reStructuredText through Docutils without protected web-safe defaults. Public rendering paths, including publish_doctree, publish_html_from_source, publish_html_from_doctree, publish_parts_from_doctree, the {% rst %} template tag, the rst template filter, DocutilsTemplates, and DocutilsView, could process attacker-controlled RST with Docutils directives that read local files, fetch URL-backed content, or emit raw HTML.

The issue is fixed in 0.30.0 by disabling Docutils file insertion, raw directives, local docutils.conf processing, and unsafe URI schemes by default, and by sanitizing doctrees before HTML is emitted.

Applications are affected when they render attacker-controlled or lower-trust RST through django-docutils without their own safe Docutils configuration. Applications that only render trusted static RST are not affected unless that content can be influenced by an attacker.

Impact

An attacker who can influence RST rendered by a vulnerable django-docutils integration may be able to read files readable by the Django worker process, trigger server-side requests through URL-backed directives, or inject raw HTML/JavaScript into rendered output.

Examples of affected application patterns include comments, wiki pages, blog bodies, profile or biography fields, CMS fields, uploaded RST documents, API-supplied RST, or overridden view content methods that return user-supplied RST.

Potential impact…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details