CVE-2026-126991
published medium CVSS 4.0 · 5.3SPARQL Injection in MISP Wikidata Lookup Module via Unescaped User Input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| misp | — | misp-modulesunspecified through 3.1.4 | Affected | Not stated | CIRCL |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- CIRCL · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| misp | misp-modules | unspecified through 3.1.4 (affected · semver) | CIRCL · cna |
Weaknesses
2- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
- CWE-209 CWE-209 Generation of Error Message Containing Sensitive Information
References
4- https://github.com/MISP/misp-modules
- Security patch https://github.com/MISP/misp-modules/commit/7a2a7e3d9e0f67f6732bd8050ab7da79e7b344d9
- https://github.com/MISP/misp-modules/pull/869
- https://misp.github.io/misp-modules/expansion/#wikidata-lookup
Provider assertions
2CIRCL · cna
SPARQL Injection in MISP Wikidata Lookup Module via Unescaped User Input
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5fb8b181e8b0acccf7a8bb1daf194aff08dd50f79e3880fd64aba2ff6f20667f
- Ingested
- 16 Nov 2026, 15:14:13 UTC
- Source record
- Official CVE record