CVE-2026-77710: STIX2 Parser Confusion and Mass Assignment Allow Unauthorized MISP Attribute Metadata Injection in misp-stix library
A vulnerability in misp-stix could allow a crafted STIX document to influence security-sensitive MISP attribute metadata during import.
The STIX import logic automatically selected between the internal MISP parser and the external STIX parser based on metadata contained in the STIX document itself. For STIX2, the presence of MISP-specific tool labels could cause a document to be classified as originating from MISP; similarly, STIX1 relied on the document title. These classification indicators are fully controlled by the STIX producer and therefore cannot constitute a trusted indication of the document's origin. The accompanying fix explicitly notes that the parser choice was previously based solely on labels or header titles that any producer could write, and introduces an explicit classification parameter allowing callers to override this detection.
When STIX2 content was handled as an internal MISP export, attributes contained in an x-misp-object were converted by copying the complete xmispattributes dictionary and passing it directly to mispobject.addattribute(). Consequently, a crafted STIX bundle could supply fields that were not part of the expected STIX-to-MISP round-trip format, including security-sensitive properties such as distribution, sharinggroupid, tags, or other MISP attribute fields.
An attacker able to provide a STIX document for import could therefore spoof the markers used to identify MISP-generated content and inject additional attribute properties. This could alter the distribution, sharing restrictions, classification, or semantic metadata of imported attributes, potentially causing information to be shared contrary to the importing organization's policy or influencing downstream processing and automation based on attacker-controlled tags or metadata.
The vulnerability results from dynamically assigning externally supplied object properties without restricting them to an expected set of attributes, matching CWE-915. MITRE specifically describes this weakness as accepting externally influenced fields without controlling which object attributes may be modified and recommends an allow-list, which is the approach implemented by the patch. The parser-selection issue additionally corresponds to CWE-807, because an untrusted value was used to make a security-relevant trust/classification decision.
The attack is also consistent with CAPEC-153 (Input Data Manipulation), in which an attacker controls the structure or flags of supplied data so that the target selects a different processing path or interprets the content differently than intended.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
misp-stixto a version that resolves this vulnerability.Patch STIX2 Parser Confusion and Mass Assignment Allow Unauthorized MISP Attribute Metadata Injection in misp-stix library
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments that import STIX documents with misp-stix are exposed when the document producer is not trusted. STIX2 bundles are relevant to the attribute-metadata injection path, while STIX1 and STIX2 documents could influence automatic parser selection through producer-controlled titles or labels.
What does an attacker need to exploit it?
An attacker needs to provide a crafted STIX document for import. They can set MISP-specific STIX2 tool labels or a STIX1 document title to influence parser classification; for the STIX2 metadata issue, the bundle must include an x-misp-object with crafted x_misp_attributes content.
Is automatic parser detection affected?
Yes. The prior selection logic relied solely on labels for STIX2 or header titles for STIX1, both of which are controlled by the STIX producer. A document should not be treated as an internal MISP export solely because it claims to be one.
What can be done if patching is not immediately possible?
Avoid importing STIX documents from untrusted producers where possible. If the integration supports it, explicitly set the document classification or parser choice rather than relying on metadata-based automatic detection.