---
id: CVE-2025-11687
aliases:
  - GHSA-6p6h-rqr6-62mv
  - PYSEC-2026-1402
title: GI-DocGen vulnerable to Reflected XSS via unescaped query strings
summary: GI-DocGen vulnerable to Reflected XSS via unescaped query strings
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
vendor: gi-docgen
product: gi-docgen
ecosystem: pip
affected:
  - gi-docgen < 2025.5
patched:
  - gi-docgen 2025.5
published: '2026-01-26'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6p6h-rqr6-62mv'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-11687'
  - url: 'https://access.redhat.com/security/cve/CVE-2025-11687'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2403536'
  - url: 'https://github.com/GNOME/gi-docgen'
  - url: >-
      https://gitlab.gnome.org/GNOME/gi-docgen/-/commit/65d16b8ac178900602da540c8f5df4f52d5e8cf6
  - url: 'https://gitlab.gnome.org/GNOME/gi-docgen/-/issues/228'
tags:
  - osv
  - pip
epss: 0.00384
epssPercentile: 0.29722
ingestedAt: '2026-07-08T18:25:46.503Z'
---

## Overview

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

- `gi-docgen < 2025.5`

## Remediation

Upgrade to a patched release:

- `gi-docgen 2025.5`
