ADVISORIES

PyPA Advisory Database

PYSEC-2026-1402

GI-DocGen vulnerable to Reflected XSS via unescaped query strings

Details

A flaw was found in GI-DocGen. This vulnerability allows arbitrary JavaScript execution in the context of the page — enabling DOM access, session cookie theft and other client-side attacks — via a crafted URL that supplies a malicious value to the q GET parameter (reflected DOM XSS).

Affected packages

EcosystemPackageAffected versions
PyPIgi-docgen
All versions before 2025.5 (fixed in 2025.5)

References