---
id: "CVE-2026-126991"
page: "https://infrastack.ai/live/CVE-2026-126991"
kind: "vulnerability"
aliases: ["CVE-2026-126991"]
title: "MISP Wikidata enrichment module: SPARQL injection via text attribute"
severity: "medium"
cvss: 5.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["misp", "misp-modules", "package", "threat-intel"]
not_affected_if: ["auth-required", "module-not-installed"]
published_at: "2026-11-12T08:16:41+00:00"
first_seen_at: "2026-11-12T08:37:14+00:00"
updated_at: "2026-11-12T08:38:38+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126991", "first_seen_at": "2026-11-12T08:37:14+00:00"}]
exploit_sources: []
---

# MISP Wikidata enrichment module: SPARQL injection via text attribute

Link for people: https://infrastack.ai/live/CVE-2026-126991 (this .md is for agents)

The MISP misp-modules Wikidata Lookup expansion module built its SPARQL query by concatenating user-supplied text into the query string without escaping. An authenticated MISP user can alter the query sent to Wikidata and, through verbose error messages, may expose internal error details.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether your MISP instance runs misp-modules with the wiki expansion module (wiki.py) installed.
- Check the installed misp-modules version against the fixed version; the sources do not name one, so unknown.

## Timeline

- 2026-11-12T08:37:14+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126991

## Documents

- [fix] Patch: github.com https://github.com/MISP/misp-modules/commit/7a2a7e3d9e0f67f6732bd8050ab7da79e7b344d9

## From the sources

The Wikidata Lookup expansion module (wiki.py) in MISP misp-modules contained a SPARQL injection vulnerability. The handler function constructed a SPARQL query by directly concatenating the user-supplied text value into the query string without any escaping or parameterization: 'SELECT ?item WHERE { ?item rdfs:label"' + request.get("text") + '" @en }'. An authenticated MISP user with access to the module could supply a crafted text attribute value containing SPARQL syntax (quotes, closing braces, UNION, SERVICE, LIMIT, etc.) to alter the structure of the query sent to the Wikidata SPARQL endpoint. This could allow an attacker to modify the query logic, extract unintended data, or cause the query to fail in ways that expose internal error details. Additionally, the old error handling path formatted raw exception objects into the response string ('wikidata API not accessible {}'.format(e)), potentially leaking internal information such as proxy credentials, query contents, or response bodies. The module also used a spoofed browser user-agent string and the deprecated Wikidata endpoint. The vulnerability required authenticated access to the MISP instance and the ability to invoke the wiki expansion module with a text attribute. The impact is limited to manipulation of the enrichment query and potential disclosure of internal error details; it does not directly compromise the MISP server or its stored data.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
