Vulnerability · Published Oct 12, 2026 · Assigned by GitHub_M
CVE-2026-104140QGIS: Stored XSS in WFS3 getFeatures HTML page via unescaped feature attribute values
Medium 6.1
In plain English
A medium-severity cross-site scripting in QGIS from qgis. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 authenticated requests with the viewer's privileges. This issue is fixed in version 3.44.12.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | qgis | no fix listed | DEBIAN-CVE-2026-104140 |
| Debian:13 | qgis | no fix listed | DEBIAN-CVE-2026-104140 |
| Debian:14 | qgis | 3.44.12+dfsg-1 | DEBIAN-CVE-2026-104140 |
| Ubuntu:22.04:LTS | qgis | no fix listed | UBUNTU-CVE-2026-104140 |
| Ubuntu:24.04:LTS | qgis | no fix listed | UBUNTU-CVE-2026-104140 |
| Ubuntu:26.04:LTS | qgis | no fix listed | UBUNTU-CVE-2026-104140 |
| Ubuntu:26.10 | qgis | no fix listed | UBUNTU-CVE-2026-104140 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/qgis/QGIS/security/advisories/GHSA-cr49-pm9v-m788 x_refsource_CONFIRM
- https://github.com/qgis/QGIS/pull/66616 x_refsource_MISC
- https://github.com/qgis/QGIS/pull/67044 x_refsource_MISC
- https://github.com/qgis/QGIS/commit/1930e81c918818a4f5412219f8f7e470d2709f91 x_refsource_MISC
- https://github.com/qgis/QGIS/commit/ca76fcac616dbf1c0446514fd6517296eb7c6904 x_refsource_MISC
- https://github.com/qgis/QGIS/releases/tag/final-3_44_12 x_refsource_MISC