CVE-2026-90957 PUBLISHED

MISP: Stored XSS via Inline-Served SVG Organisation Logos and Report Pictures

Assigner: CIRCL
Reserved: 14.09.2026 Published: 14.09.2026 Updated: 14.09.2026

Affected versions of MISP serve uploaded SVG images inline without a restrictive browser sandbox.

The commit explains that SVG files are XML documents rather than passive bitmap images. While scripts inside SVG do not execute when the SVG is rendered through a normal <img>, they can execute when the SVG is navigated to directly or embedded as a document. In that case, malicious <script> elements, event handlers, or javascript: URLs execute on the MISP origin with the viewer’s session.

The affected use cases include:

- organisation SVG logos;  - event-report SVG pictures.

Importantly, the vulnerable behavior is on the serve path, not merely the upload path: the patch notes that a malicious SVG uploaded while SVG support was enabled could remain dangerous even after uploads were later disabled.

Version affected: ≤2.5.45

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
CVSS Score: 5.1

Product Status

Vendor MISP
Product MISP
Versions
  • affected from 0 to 2.5.46 (excl.)

Solutions

A new sandboxInlineFile() method is added to RestResponseComponent. When a file is served inline (download=false) and its type is SVG (svg, svgz, or image/svg+xml), the response is augmented with a Content-Security-Policy header containing the sandbox directive (which assigns an opaque origin and disables script execution, plugins, and form submission) along with restrictive default-src, style-src, img-src, and font-src directives that still permit rendering of inline styles, embedded raster images, and data: fonts. An X-Content-Type-Options: nosniff header is also set. The method is invoked from both the generic sendFile() path and the org-logo endpoint. The enable_svg_logos setting description is updated to warn administrators that SVG files remain XML documents and should be left disabled unless required.

Credits

  • Scottish Government - National Cyber Team reporter
  • iglocska remediation developer
  • Claude Opus 5 (1M context) remediation developer

References

Problem Types

  • CWE-79 Improper Neutralization of Input in Web Page ('Cross-site Scripting') CWE
  • CWE-693 Protection Mechanism Failure CWE

Impacts

  • CAPEC-63 Cross-Site Scripting (XSS)