CVE-2026-126991 Details
Description
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.
A SPARQL injection vulnerability has been identified in the Wikidata Lookup expansion module of MISP misp-modules. This issue arises because the module's handler function constructs SPARQL queries by directly concatenating user-supplied text into the query string without proper escaping or parameterization. An authenticated MISP user with access to this module could exploit this vulnerability by sending a crafted text attribute that includes SPARQL syntax, such as quotes, closing braces, and other query elements. This could manipulate the query logic, extract unintended data, or cause the query to fail in a way that reveals internal error details. Additionally, the module's previous error handling could inadvertently leak sensitive information, such as proxy credentials or query contents.
The vulnerability has been fixed in version 3.1.4 of the MISP Wikidata Lookup module. Users should update to this version to address the SPARQL injection vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2026CISA-ADP
Assessed Nov 16, 2026Supplier
Assessed Nov 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/MISP/misp-modules | CIRCL | Vendor |
| https://github.com/MISP/misp-modules/commit/7a2a7e3d9e0f67f6732bd8050ab7da79e7b344d9 | CIRCL | Source CodeVendor |
| https://github.com/MISP/misp-modules/pull/869 | CIRCL | Issue TrackingVendor |
| https://misp.github.io/misp-modules/expansion/#wikidata-lookup | CIRCL | ProductSource CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-209 | Generation of Error Message Containing Sensitive Information | CIRCL |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CIRCL |
Affected Products
| Product | Versions |
|---|---|
| MISP Modules | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 16, 2026 | CVE Modified | CISA-ADP |
| Nov 12, 2026 | New CVE Received | CIRCL |
Volerion