CVE-2026-126991 — misp misp-modules
One of 3 misp misp-modules vulnerabilities published together by NVD: our article covers all of them.
BrowsersVulnerabilitiesEndpoint securityResearch article
MISP misp-modules Wikidata Lookup module: SPARQL query manipulation and verbose error disclosure (CVE-2026-126991)
| CVE | CVE-2026-126991 |
|---|---|
| Vendor and product | misp misp-modules |
| Published | November 12, 2026 09:35 UTC |
| Research cut-off | November 12, 2026 09:30 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-12); CISA KEV catalog |
Executive summary
CVE-2026-126991 is a flaw in the Wikidata Lookup expansion module of MISP misp-modules, where a user-supplied text value is placed into a SPARQL query without escaping or parameter binding, and where an older error branch can echo raw exception details back to the user [1]. NIST NVD records the issue as MEDIUM with a CVSS 4.0 base score of 5.3, vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X, assigned by a secondary scorer [1]. The CVE record states that misp-modules up to and including 3.1.4 is affected, and no fixed version is published in the reviewed sources [1]. Exploitation requires an authenticated MISP user who can invoke the module with a text attribute, and the record describes the impact as limited to altering the enrichment query and disclosing internal error details [1]. CISA's Known Exploited Vulnerabilities catalog did not list the CVE as of 2026-11-12, which does not establish that exploitation has not occurred [2]. The most important immediate action for defenders is to inventory every misp-modules deployment at or below 3.1.4, restrict who can use the expansion modules, and plan an upgrade to a release that the vendor confirms contains the fix once it is identified [1].
Key points
- The Wikidata Lookup module in misp-modules builds a SPARQL query from an authenticated user's text value without escaping or parameterization [1].
- NVD rates the CVE MEDIUM with CVSS 4.0 base score 5.3 and vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X [1].
- The record lists misp-modules up to and including 3.1.4 as affected; no fixed version is published in the reviewed sources [1].
- The older error path can return raw exception details, which the record says may include proxy credentials or response bodies [1].
- CISA KEV did not list the CVE as of 2026-11-12, which is not evidence of non-exploitation [2].
- Immediate action: restrict or disable the module and limit its outbound access until a vendor fix is confirmed and deployed [1].
Vulnerability identification
| Field | Detail |
|---|---|
| CVE ID | CVE-2026-126991 [1] |
| Vendor (CVE Numbering Authority record) | MISP project, as the affected product is named in the record [1] |
| Product | misp-modules [1] |
| Component | The Wikidata Lookup expansion module, implemented in the file wiki.py [1] |
| Affected platform | Not established by the reviewed sources beyond the misp-modules package and its expansion module [1] |
| Published | 2026-11-12T08:16:41 [1] |
| Last modified | 2026-11-12T08:16:41 [1] |
| Record status | Deferred, as shown by NVD [1] |
| CISA KEV status | Not listed as of 2026-11-12 [2] |
| CWE classifications | CWE-94, a weakness in which externally influenced input is used to generate code or a query that is then executed; CWE-209, a weakness in which error messages reveal sensitive information [1] |
| CVSS 4.0 base score | 5.3, MEDIUM [1] |
| CVSS 4.0 vector | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X [1] |
| Scorer | A secondary scorer identified in the NVD record [1] |
| Other CVSS versions | None in the reviewed sources [1] |
| Related references | A commit and a pull request in the misp-modules repository, listed in the record without a stated relationship to the fix [1] |
The CWE assignments are those given by the NVD record. CWE-94 is the closer match to the description's core issue, because a query built from input is interpreted by a remote SPARQL engine, which is a form of code injection in the broad sense. The CWE-209 assignment matches the error-message disclosure described in the record [1]. Analyst assessment: the CWE-94 label is broader than strict query injection, so readers should treat it as the record's classification rather than a precise technical description.
Technical background
MISP (Malware Information Sharing Platform) is an open-source threat intelligence platform that stores and shares indicators and event data. Its companion project misp-modules provides external helper services, including expansion modules that take a value from an event attribute, query an outside service, and return enriched data to the platform [1].
SPARQL is a query language for RDF (Resource Description Framework) graph data. Wikidata exposes a public SPARQL endpoint, which the Wikidata Lookup module calls to find items whose labels match a text value [1]. The trust boundary in this design sits between the MISP user, who supplies the attribute value, and the query that misp-modules builds and sends to the external endpoint. The record states that the endpoint used is a deprecated one, and that the module sends a spoofed browser user-agent string [1].
An expansion module normally assumes that a value it receives is data, not part of the query grammar. Safe query construction keeps data and query syntax separate, either through escaping for the target language or through parameter binding that the query engine handles. The reviewed sources describe the module as not performing either step [1].
Vulnerability description
The record describes a violation of input integrity in query construction: text supplied by an authenticated user is interpreted as part of a SPARQL statement rather than as a literal value [1]. The record says an attacker could use SPARQL syntax inside the text value to change the logic of the query sent to the Wikidata endpoint, potentially retrieving data the module would not otherwise return, or causing the query to fail in a way that exposes internal error details [1]. These outcomes are described as possible in the record. The reviewed sources do not include a demonstration of any of them [1].
The record also describes an older error-handling branch that inserted the raw exception object into the message returned to the caller. According to the record, this could expose internal details, including proxy credentials, query contents or upstream response bodies [1]. The sources do not state whether the current code path still contains this branch, or whether any deployed version has been observed returning such data [1].
The record states that the impact is limited to the enrichment query and to disclosure of internal error details, and that the vulnerability does not by itself compromise the MISP server or the data it stores [1]. Analyst assessment: this scope claim is the vendor-independent statement in the NVD record and is not verified against the source code in this review. The record's scope does not rule out a deployment where the proxy credentials or internal endpoints exposed in an error message are themselves sensitive.
Root cause analysis
Confirmed: the record attributes the flaw to query construction in the handler function of wiki.py, which joins the request's text field into a SPARQL string without escaping or parameterization [1]. Confirmed: the older error path formats the raw exception into the response [1].
Analyst assessment: the root cause is a design choice to build the query by string concatenation, with no encoding layer between user-controlled data and the query grammar. The absence of escaping means that characters with structural meaning in SPARQL, such as quotation marks and braces, are not neutralized before the query reaches the endpoint [1]. The error disclosure follows from returning exception objects directly, rather than mapping failures to a generic message and logging the detail server-side [1].
Unknown: the reviewed sources do not describe the commit that introduced the code, the review history, or the reason the endpoint and user-agent choices were made. The sources also do not show whether the commit and pull request listed in the record change the query construction, the error handling, or both [1]. Establishing this requires reading the diff of those referenced changes.
Technical mechanics
- An authenticated MISP user invokes an expansion workflow that routes an attribute value to the Wikidata Lookup module in misp-modules [1].
- The module receives the request, and the handler reads the text field from it [1].
- The handler inserts the text value into a SPARQL template by string concatenation, with no escaping or parameterization [1]. This is the validation failure: the boundary between data and query syntax is not enforced.
- The constructed query is sent to the Wikidata endpoint that the module uses, which the record describes as deprecated [1].
- If the endpoint returns results, the module formats them into the enrichment response. If the query is malformed or the request fails, the older error branch returns the raw exception text to the caller [1].
- The intended control, which is a parameterized query or a strict escaping function for the SPARQL literal context, is absent from this path [1]. Analyst assessment: validating the text against a permitted character set, and rejecting anything outside it, would also have contained the issue.
Illustrative: a text value containing syntax characters could cause the remote engine to return a parse error. In a vulnerable build, that error text could be sent back to the MISP user, which is the error disclosure path the record describes [1]. The sources do not confirm this specific sequence.
Attack surface and exploitation prerequisites
| Prerequisite | Status |
|---|---|
| Network access | The CVSS vector indicates network attack vector [1]. Whether the MISP instance is reachable is a deployment question; the record does not describe a specific exposed interface. |
| Adjacent network, local or physical access | Not indicated by the vector, which marks the attack vector as network [1]. |
| Authentication | Required, as the record states that an authenticated MISP user is needed; the vector's PR:L component is consistent with low privileges [1]. |
| Privilege level | Low privilege, as represented by the vector; the record does not state which MISP role is needed [1]. Unknown: whether a read-only or a standard user role can invoke the module. |
| User interaction | None, per the vector [1]. |
| Required configuration | The Wikidata Lookup expansion module must be available and invocable with a text attribute [1]. Whether it is enabled by default is not established by the reviewed sources. |
| Attacker position | An account on the MISP instance, not an unauthenticated internet client [1]. |
| Dependencies | Outbound access from the misp-modules host to the Wikidata endpoint is needed for queries to reach the remote engine [1]. Analyst assessment: without that access, the injected query cannot be evaluated remotely, though the error path could still be reached. |
The vector's values for environmental and supplemental metrics are all X, meaning not defined, so no organization-specific modifiers are provided in the record [1]. Exploitability should not be inferred from the base vector alone. The sources do not provide a proof of concept or a tested exploit path [1, 2].
Exploitation scenarios and attack lifecycle
Illustrative scenario, consistent with the record: an insider or a compromised low-privilege account on a MISP instance submits attribute values designed to alter the enrichment query. The attacker's goal would be either to obtain data from the Wikidata endpoint that the module would not normally return, or to trigger an error that discloses internal details [1]. The record does not confirm either outcome.
Illustrative scenario, error disclosure: an attacker with a standard account triggers failures and reads the returned messages for proxy configuration or upstream response details. This depends on the older error branch being present in the deployed build, which the sources do not confirm [1].
Defensive opportunities: restrict which accounts can use the expansion modules; review logs for enrichment requests whose text values contain unusual query syntax; monitor misp-modules error responses for internal details; and ensure the module's outbound connections are logged at the proxy or egress point. The sources do not describe a specific log format or event for this module, so these opportunities are analyst recommendations rather than vendor guidance [1].
No chain with a further compromise of the MISP server is documented in the reviewed sources, and the record states the impact does not extend to that [1].
Impact analysis
| Security property | Demonstrated by sources | Plausible consequence, not demonstrated |
|---|---|---|
| Confidentiality | The record describes possible data retrieval beyond intended query results and possible disclosure of proxy credentials, query contents and response bodies in error output [1] | Exposure of an internal proxy credential would allow access to whatever that proxy controls. The sources do not show that any credential was exposed. |
| Integrity | The record describes altering the enrichment query logic [1] | Enrichment results could be skewed for the requesting user. The record does not describe modification of stored MISP data, which it says is not affected [1]. |
| Availability | The record describes queries failing in ways that expose details, not sustained denial of service [1] | Not established by the reviewed sources. |
| Authentication and authorization | Authentication is required; the record does not describe bypass of authentication [1] | Not established by the reviewed sources. |
| Privilege boundaries | The record states the MISP server itself is not directly compromised [1] | Not established by the reviewed sources. |
| Data and privacy | Possible disclosure of internal error details and query contents [1] | Depends on what the misp-modules host can reach. Not established by the reviewed sources. |
| Business operations | Not described in the sources [1] | Dependent on the organization's use of enrichment for detection and sharing. Analyst assessment only. |
| Regulatory or contractual | Not described in the sources [1] | Not established by the reviewed sources. |
Affected products and versions
| Vendor | Product or component | Affected versions | Platform or deployment | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| MISP project | misp-modules, Wikidata Lookup module | Up to and including 3.1.4 [1] | Self-hosted misp-modules service used with MISP [1] | Not published in the reviewed sources [1] | Vendor-published range in the CVE record [1]. Not verified against a vendor advisory in this review. |
The record lists affected versions only as an upper bound. The reviewed sources do not state a lower bound, so whether earlier releases are affected is not established. Configuration-specific exposure is not described beyond the module being invocable [1]. No exclusions are listed in the sources.
Exploitation and threat intelligence status
Confirmed exploitation in the wild: not established by the reviewed sources. The CISA catalog did not list the CVE as of 2026-11-12, and the catalog states that its absence is not evidence that the CVE was never exploited [2].
Public proof of concept: not established by the reviewed sources. The record references the project repository, a commit and a pull request, and the Wikidata module documentation, but none is described as an exploit [1].
Threat actors, campaigns and targeted sectors: not established by the reviewed sources.
Theoretical exploitability: the record describes the mechanism, and the vector indicates a network attack with low privileges and no user interaction [1]. Analyst assessment: the attack requires a valid MISP account, which narrows the population of potential attackers to people who already have some access to the instance.
The record's Deferred status indicates the NVD analysis has not been finalized, so the scoring and classification may change [1].
Indicators of compromise
The reviewed sources give no file hashes, domains, IP addresses, URLs, process names, command lines, log events or network patterns for this vulnerability. Not established by the reviewed sources. Indicators, once identified, go stale and must be validated against local telemetry before they are blocked. Analyst recommendation: until the vendor or a researcher publishes specific indicators, review enrichment requests for text values containing SPARQL syntax characters, and review misp-modules error responses for internal hostnames, credentials or upstream response bodies [1]. These are search criteria derived from the description, not published indicators.
Detection and exposure assessment
- Build an inventory of every MISP instance that has the misp-modules service deployed, including containers and virtual machines, and record the installed misp-modules version for each. The sources do not specify a command for this, so use the deployment's own package manager or container image metadata [1].
- Flag every instance at or below 3.1.4 as potentially affected, per the record's range [1]. Treat the version match as a prerequisite check, not as proof of exploitability.
- Confirm whether the Wikidata Lookup module is present and enabled in each affected instance. The sources do not specify the configuration key; consult the deployed module configuration and the MISP documentation for the module [1].
- Identify which MISP accounts can invoke expansion modules. Unknown in the sources: the exact role or permission needed. Review the MISP role configuration on each instance.
- Review misp-modules and MISP logs for enrichment requests to the Wikidata module over the past period, looking for text values containing SPARQL syntax. The sources do not define a log schema, so note the log source and format for each system.
- Review outbound proxy or egress logs for requests from the misp-modules host to the Wikidata endpoint, and compare the destination and volume with expected baseline traffic [1].
- Review error responses returned to MISP users for internal hostnames, proxy details or upstream content.
Limitation: none of these checks establishes that a system has been exploited, and the absence of matching log entries does not establish that no exploitation occurred.
Immediate mitigation
- Restrict the Wikidata Lookup module to a limited set of trusted accounts, or disable it on affected instances until a fixed version is deployed. Protects against: authenticated misuse of the module. Limitation: does not address the flaw for accounts still permitted to use it. Side effect: loss of Wikidata enrichment. Verification: confirm from the MISP role or module settings that only the intended accounts can invoke it. This step follows from the record's description of the module requiring an authenticated invocation [1]; the disabling mechanism is analyst recommendation.
- Limit outbound access from the misp-modules host so that it can reach only the required external services. Protects against: unnecessary exposure of internal responses and misuse of the host's connectivity. Limitation: does not stop manipulation of queries sent to the permitted endpoint. Side effect: other enrichment modules may fail if they depend on blocked destinations. Verification: test that the module fails cleanly and that other required destinations remain reachable. This is an analyst recommendation following from the record's description of outbound queries [1].
- Increase logging and review of enrichment requests and error responses, as described in the detection section. Protects against: undetected misuse. Limitation: detective only. Side effect: higher log volume. Verification: confirm logs are received in the central store. Analyst recommendation.
- Review and reduce the MISP accounts with access to expansion modules, following the principle of least privilege. Protects against: a broad population of users able to reach the vulnerable path. Limitation: does not remove the flaw. Side effect: some users lose enrichment functionality. Verification: audit role assignments after the change. Analyst recommendation.
Permanent remediation
Vendor-confirmed fix: not established by the reviewed sources. The CVE record gives an upper bound of 3.1.4 and lists a commit and a pull request in the misp-modules repository, but does not say which release contains a fix or whether those changes address the query construction, the error handling, or both [1].
Recommended action: once the vendor or the project's release notes identify the fixed release, upgrade every affected misp-modules instance to that release or later and verify the installed version. Until then, the permanent remediation cannot be specified precisely.
Upgrade considerations to confirm against the release notes: any dependency changes, service restart requirements, and configuration changes the release introduces. None are described in the reviewed sources.
Recommended hardening, independent of the vendor fix and drawn from the record's description: ensure the query code builds SPARQL literals through a proper escaping function or parameter binding, and ensure errors returned to users are generic while full details go to server-side logs [1]. Confirm the vendor's changes contain these before treating them as fixed.
Workarounds and compensating controls
Disabling or restricting the module, limiting its users and restricting outbound connections reduce exposure while the fix is pending [1]. These are compensating controls and do not correct the query construction or the error path. A workaround is not equivalent to a permanent fix, because a user who retains module access can still submit crafted text values, and a restriction on destinations does not change the content of permitted queries.
No vendor-supported workaround is described in the reviewed sources.
Validation and verification
- Confirm the installed misp-modules version on each instance is the fixed release, once identified, and record the version, host, owner and date.
- Confirm that the Wikidata Lookup module is either disabled or limited to the approved accounts, as configured.
- Submit a test enrichment request with ordinary text, in a non-production instance and under an authorized test account, and confirm it returns the expected result. Do not submit syntax-based test strings against production systems.
- Review the module's error responses in a controlled test by triggering a benign failure, such as an unreachable endpoint in a test environment, and confirm the message contains no internal details.
- Re-check egress logs to confirm that outbound requests from the misp-modules host go only to approved destinations.
- Confirm that the compensating controls remain in place for any system where the fix is delayed.
- Record the evidence, owner, date and any exceptions. No single check establishes that a system is secure, so the validation should be repeated after the fix and periodically thereafter.
Incident response
If exploitation is suspected, follow the organization's incident response plan. Triage and scope by identifying which instances run affected versions, which accounts used the Wikidata module, and which enrichment requests contain unusual syntax [1]. Contain by disabling the module or restricting the affected account, without deleting logs. Preserve evidence from MISP, misp-modules and proxy logs before any change, and capture the configuration state.
Investigate the logs for requests with unusual text values and for error responses containing internal details. If proxy or upstream credentials appear in error output, treat them as exposed and rotate them according to the organization's secret management process. The sources do not show that any credential was exposed, so this is a conditional step [1].
Recover by upgrading to the fixed release once confirmed, restoring the module under least-privilege access, and monitoring the affected logs. Notification and reporting obligations depend on the organization's jurisdiction and the data involved, and are not established by the reviewed sources. Conduct a lessons-learned review focused on access control to expansion modules and on error-handling standards.
Security hardening and prevention
Secure development: require parameterized or escaped construction for every query language used by modules, and add code review checks for string concatenation that includes user input. Analyst recommendation.
Input validation: restrict text values sent to query-based modules to an allowed character set appropriate to the data, and reject anything else with a generic response. Analyst recommendation.
Error handling: map exceptions to fixed user-facing messages and log detailed information server-side only, which addresses the CWE-209 issue described in the record [1].
Access control: limit expansion module access to the roles that need it, and review those roles periodically. Analyst recommendation.
Least privilege and isolation: run misp-modules with minimal network reach and credentials, and keep proxy credentials out of configuration files that the service can echo. Analyst recommendation; the proxy-credential exposure is described in the record [1].
Regression coverage: add tests that submit syntax-bearing text to the module in a test environment and confirm the query is treated as literal data. Analyst recommendation.
Patch management: track misp-modules releases and apply them on a defined schedule, with a process for security-relevant releases. Defence-in-depth measure.
Risk assessment
Technical severity: the NVD record scores the issue MEDIUM at 5.3 under CVSS 4.0, with the vector given above [1]. The vector indicates network reach and low privileges, with no user interaction and no direct impact on the MISP server's own confidentiality or availability [1].
Exposure and asset criticality: depends on whether the MISP instance is reachable by a broad user base and whether the misp-modules host holds internal network access or proxy credentials. Not established by the reviewed sources for any specific organization.
Exploit prerequisites and attacker opportunity: a valid MISP account is needed, which limits the attacker population to users who already have some access [1]. No exploit is documented in the reviewed sources [1, 2].
Evidence of exploitation: none established. The CISA catalog did not list the CVE as of 2026-11-12, and that is not evidence of non-exploitation [2].
Business impact: the record limits the consequence to the enrichment function and error disclosure [1]. Organizations that depend on enrichment for intelligence sharing face operational impact if the module is disabled.
Existing controls and residual risk: authentication on MISP and any role restrictions reduce the population with access. Residual risk remains until a fixed release is confirmed and deployed.
Recommended priority: medium-to-high for instances that expose the module to a broad set of accounts or have proxy credentials in the misp-modules configuration, and medium for instances where the module is restricted to a small trusted group. This is an analyst assessment based on the record's scope and is not the CVSS score. Assumptions: the record's description and vector are accurate, the module is enabled, and the fixed version is not yet known.
Conclusion
The core flaw is that the Wikidata Lookup module in misp-modules builds a SPARQL query from an authenticated user's text value without escaping, and its older error path can return internal details to the user [1]. Administrators of misp-modules instances at or below 3.1.4 should act first, by restricting or disabling the module and limiting outbound access [1]. The permanent fix is a vendor release that addresses the query construction and error handling, which the reviewed sources do not identify [1]. Closing the issue requires the vendor's fixed version, the diff of the referenced commit and pull request, confirmation that each deployment runs the fixed release, and evidence that the error responses contain no internal details [1]. Exploitation status should be rechecked as the KEV catalog and other sources update [2].
Remediation checklist
- Inventory every MISP instance running misp-modules and record the installed version on each host, flagging all versions at or below 3.1.4 [1].
- Identify which instances have the Wikidata Lookup module enabled, and disable it on affected instances or restrict it to a named group of trusted accounts [1].
- Review the MISP role configuration to determine which accounts can invoke expansion modules, and remove access that is not required [1].
- Limit outbound connections from the misp-modules host to the Wikidata endpoint and other required destinations, and confirm other enrichment functions still work [1].
- Obtain the vendor's fixed release for misp-modules and check the release notes for the query construction and error-handling changes; the reviewed sources do not identify it [1].
- Review the commit and pull request listed in the CVE record to confirm whether they change query construction, error handling, or both [1].
- Upgrade each affected misp-modules instance to the confirmed fixed release, then verify the installed version on each host [1].
- Confirm in a test environment that error responses from the module contain no internal hostnames, credentials or upstream content [1].
- Review enrichment requests and error responses in MISP and misp-modules logs for syntax-bearing text values and internal details, and preserve the logs [1].
- Rotate any proxy or upstream credential that may have appeared in error output, following the organization's secret management process [1].
- Keep compensating controls in place until the fixed version is verified on every instance, and record owner, date and exceptions [1].
Evidence gaps
- The fixed version of misp-modules is not published in the reviewed sources; the vendor advisory or release notes should be checked to identify it [1].
- The lower bound of the affected range is not stated; earlier releases may or may not be affected. Checking the vendor's version history would settle this [1].
- The commit and pull request listed in the record are not described as containing the fix; their diffs must be reviewed to confirm what changed [1].
- No vendor advisory or security bulletin is included in the pack, so vendor confirmation of the root cause and impact is not established [1].
- No proof of concept or tested exploit path is included, so the practical exploitability of the query manipulation is not demonstrated [1, 2].
- Confirmed exploitation in the wild is not established; the KEV absence does not rule it out and should be rechecked as the catalog updates [2].
- No indicators of compromise, log schemas or event fields are given for this issue, so detection relies on the description-based criteria above [1].
- The NVD record is in Deferred status, so the scoring and classification may change after analysis is completed [1].
- The sources do not state which MISP roles or permissions are needed to invoke the module, nor whether it is enabled by default; confirming these requires the vendor documentation and a test instance [1].
References
- CVE-2026-126991 record. NIST National Vulnerability Database (NVD), 2026-11-12. https://nvd.nist.gov/vuln/detail/CVE-2026-126991. Accessed 2026-11-12.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12.
Summary
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.
Severity breakdown
Medium · 5.3
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, a normal user account
- User action needed
- no
- Impact
- low on integrity, none on confidentiality and availability
- Impact on other systems
- none
Weakness
- CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-209: Generation of Error Message Containing Sensitive Information
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| misp misp-modules | ≤ 3.1.4 | — |
References by type
Patches and fixed releases
- github.com/MISP/misp-modules/commit/7a2a7e3d9e0f67f6732bd8050ab7da79e7b…
- github.com/MISP/misp-modules/pull/869
Other references
Affected
- misp misp-modules
Frequently asked questions
What is CVE-2026-126991?
CVE-2026-126991 is a flaw in the Wikidata Lookup expansion module of MISP misp-modules, where a user-supplied text value is placed into a SPARQL query without escaping or parameter binding, and where an older error branch can echo raw exception details back to the user. Weakness type: Improper Control of Generation of Code ('Code Injection') (CWE-94).
How severe is CVE-2026-126991?
CVE-2026-126991 has a CVSS 4.0 base score of 5.3 (medium), from the CNA. An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-126991 being exploited?
Not as far as is known: CVE-2026-126991 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126991?
misp misp-modules ≤ 3.1.4.
How do I fix CVE-2026-126991?
Inventory every MISP instance running misp-modules and record the installed version on each host, flagging all versions at or below 3.1.4. Identify which instances have the Wikidata Lookup module enabled, and disable it on affected instances or restrict it to a named group of trusted accounts. Review the MISP role configuration to determine which accounts can invoke expansion modules, and remove access that is not required.