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

Medium 5.3 Published Updated

Authenticated MISP users can inject SPARQL via the Wikidata Lookup module to alter queries and leak internal error details.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-126991?

CVE-2026-126991 is a medium-severity code injection vulnerability in misp-modules, published on 12 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94, CWE-209

Which versions are affected by CVE-2026-126991?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-126991?

No fix has been published for CVE-2026-126991 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-126991 being exploited?

There is no known exploitation of CVE-2026-126991 in the wild and no public exploit code.

Sources

Also known as GHSA-2w5p-72rc-qq3c.

Is CVE-2026-126991 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free