# CVE-2026-126991: SPARQL Injection in MISP Wikidata Lookup Module via Unescaped User Input

- Severity: Medium 5.3 (CVSS:4.0, scored by CIRCL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-11-12T07:33:51.485Z
- Modified: 2026-11-16T15:17:18.527Z
- Weaknesses: CWE-94, CWE-209
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- misp misp-modules: from unspecified up to 3.1.4

## References

- <https://github.com/MISP/misp-modules/commit/7a2a7e3d9e0f67f6732bd8050ab7da79e7b344d9> (patch)
- <https://misp.github.io/misp-modules/expansion/#wikidata-lookup>
- <https://github.com/MISP/misp-modules/pull/869>
- <https://github.com/MISP/misp-modules>

## Sources

- CVE List: [CVE-2026-126991](https://www.cve.org/CVERecord?id=CVE-2026-126991), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-126991](https://nvd.nist.gov/vuln/detail/CVE-2026-126991), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-126991 · Whole record: https://cve.day/CVE-2026-126991.json · Rebuilt by cve.day 2026-11-25T22:59:50.503Z
