---
title: "CVE-2026-104140"
canonical_url: "https://pkgseek.com/security/CVE-2026-104140"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-104140

QGIS is a free, open source, cross-platform geographic information system. Prior to 3.44.12 and 4.0.0 through 4.2.3, QGIS Server renders feature data in WFS3 (OGC API Features) HTML responses without HTML escaping. Attacker-controlled feature.properties values from a published writable vector layer reach resources/server/api/ogc/templates/wfs3/getFeatures.html through QgsServerOgcApiHandler::htmlDump and the if_nullptr_null_str callback. A user who opens an items HTML page can execute stored markup or script in the QGIS Server origin, which can expose the viewer's session data or issue authent…

CVE-2026-104140 is rated MEDIUM (6.1), with 31 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (6.1)
- **Affected builds**: 31
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | libqgis-3d3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-analysis3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-app3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-core3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-customwidgets | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-dev | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgisgrass8-3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-gui3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-native3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgispython3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | libqgis-server3.40.6 | 3.40.6+dfsg-1 | — |
| Debian | trixie | python3-qgis | 3.40.6+dfsg-1 | — |
| Debian | trixie | python3-qgis-common | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-api-doc | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-common | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-plugin-grass | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-plugin-grass-common | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-provider-grass | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-providers | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-providers-common | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-bin | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-common | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-landingpage | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-wcs | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-wfs | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-wfs3 | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-wms | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-server-wmts | 3.40.6+dfsg-1 | — |
| Debian | trixie | qgis-sip | 3.40.6+dfsg-1 | — |
