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.
Published: 2026-10-12
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting via unescaped attributes
Action: Apply Patch
AI Analysis

Impact

QGIS Server fails to escape feature attribute values when rendering the WFS3 (OGC API Features) getFeatures.html page. Feature properties that originate from a published, writable vector layer are injected directly into the HTML response. When a user opens that page in a browser, any embedded HTML or JavaScript executes in the context of the QGIS Server origin. An attacker can therefore inject malicious markup to exfiltrate the victim’s session cookies, read other data available to the user’s account, or perform authenticated requests on behalf of the viewer, potentially escalating privileges if the user is an administrator or holds privileged roles.

Affected Systems

This flaw exists in QGIS Server versions that precede 3.44.12 as well as in the 4.0.0 through 4.2.3 releases. The affected product is the QGIS Server component of QGIS, which is used to expose geographic data via the WFS3 API. Upgrading to 3.44.12 or any later 4.x release removes the vulnerability.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate overall risk. No EPSS value is provided, so the current exploit probability cannot be quantified, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires that an attacker be able to publish a writable vector layer containing malicious attribute values and that the victim load the WFS3 getFeatures page in a browser that accepts the request. While the attack vector relies on an available writable layer, the ability to execute arbitrary script from the server origin can lead to session hijacking or further credential‑based attacks if the victim has elevated permissions.

Generated by OpenCVE AI on October 13, 2026 at 01:09 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade QGIS Server to version 3.44.12 or later; for 4.x, upgrade to any release newer than 4.2.3.
  • If an upgrade is delayed, restrict access to the WFS3 API or block the getFeatures.html endpoint for untrusted users, preventing the unescaped content from being served to clients.
  • Review and limit which vector layers are writable; ensure any published layers do not contain user‑supplied attribute values that could be interpreted as HTML or script.

Generated by OpenCVE AI on October 13, 2026 at 01:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 13 Oct 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Qgis
Qgis qgis
Vendors & Products Qgis
Qgis qgis

Mon, 12 Oct 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title QGIS: Stored XSS in WFS3 getFeatures HTML page via unescaped feature attribute values
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-13T14:55:49.324Z

Reserved: 2026-10-01T18:47:30.995Z

Link: CVE-2026-104140

cve-icon Vulnrichment

Updated: 2026-10-13T14:55:26.420Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-12T22:17:03.273

Modified: 2026-10-16T16:00:33.533

Link: CVE-2026-104140

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T04:30:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')