# CVE-2026-135253: MISP NIDS Rule Export Injection via Unescaped Attribute Values and Tags

Status: published. Published: 2026-11-23. Updated: 2026-11-23.

MISP's NIDS rule export functionality for Snort and Suricata formats does not properly escape user-controlled data before embedding it into generated rule text. Attribute values, tag names, and URL paths are inserted directly into rule options (msg, metadata, content matches) without neutralizing characters that are syntactically significant in the NIDS rule grammar, such as double quotes, semicolons, backslashes, commas, and control characters.

An authenticated user with the ability to create or modify attributes in a MISP instance can craft attribute values or tag names containing these special characters. When the NIDS rules are exported, the unescaped data breaks out of the intended option or content field, allowing injection of arbitrary rule options, corruption of rule structure, or generation of syntactically invalid rules that may cause the downstream NIDS engine to reject the entire ruleset.

The affected export paths include:
- Snort and Suricata msg: option (quotes, semicolons, backslashes, control characters)
- Suricata metadata: option (commas, semicolons, quotes, whitespace, control characters)
- Suricata http.uri content: match for URL path (quotes, semicolons, pipe characters)

Security impact is limited to the integrity and availability of the exported NIDS rules and the downstream NIDS engine that consumes them. There is no direct compromise of the MISP application itself.

Affected: MISP versions prior to 2.5.52.

## Remediation

- fix: The fix introduces dedicated escaping functions that neutralize NIDS-rule-significant characters before they are embedded in generated rule text. For msg: options, control characters are replaced with underscores and backslashes, double quotes, and semicolons are backslash-escaped. For Suricata metadata fields, all whitespace, commas, semicolons, quotes, backslashes, and control characters are replaced with underscores. For content: matches, the existing illegal-character replacement is extended to hex-encode control characters. Additionally, the URL path in Suricata rules is now passed through the illegal-character escaper before being placed in the http.uri content match, and two dead assignments that incorrectly set the path from the host are removed. (source: CNA: CIRCL)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: CIRCL) — https://github.com/MISP/MISP/commit/a21b51086c9dbccea8756cb9025384e2cf3d7823
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: CIRCL) — https://github.com/MISP/MISP/commit/8438e44ffa711d1c0d1e1500c06338f5ddd634c8

## Affected products and versions

- MISP / MISP: ≥ 0; < 2.5.52 (affected, semver). Source: CNA: CIRCL

## Severity and prioritization

- CVSS 4.0: 5.3 (medium); CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N; source: CNA: CIRCL

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: exploitation none; automatable yes; technical impact partial; source CNA: CIRCL

- Weaknesses: CWE-116, CWE-74

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/MISP/MISP/commit/a21b51086c9dbccea8756cb9025384e2cf3d7823 (CNA: CIRCL; patch)

- https://github.com/MISP/MISP/commit/8438e44ffa711d1c0d1e1500c06338f5ddd634c8 (CNA: CIRCL; patch)

## Provenance

- CNA: CIRCL: https://www.cve.org/CVERecord?id=CVE-2026-135253; retrieved 2026-11-23; source updated 2026-11-23

Revision: e2476e9b0df3c48f313c9ee5f73eb4e8c87d01863e010d54cdd5b375c0072c56

Canonical: https://y2.dev/cve/CVE-2026-135253

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.