CVE-2026-106512: MISP sachertortephp - CakeResponse::download() HTTP Response Splitting via Unsanitized Filename Enables Stored XSS

Published Oct 6, 2026
·
Updated

The CakeResponse::download() method in lib/Cake/Network/CakeResponse.php constructs a Content-Disposition header by directly interpolating a caller-supplied filename into a quoted-string value without sanitization. Two distinct injection vectors exist in the unpatched code. First, if the filename contains C0 control characters (CR or LF), PHP refuses to emit the entire Content-Disposition header, silently dropping the attachment disposition. The response body is then served with its own Content-Type (for example text/html for an .html attachment) and renders inline in the browser on the application origin, creating a stored cross-site scripting condition. The commit message notes this is reachable even when the downloadattachmentsonload setting is enabled, meaning a victim merely needs to view a page that triggers the download. Second, a double-quote character in the filename terminates the quoted-string value early, permitting injection of additional Content-Disposition parameters. The affected code path covers all callers of CakeResponse::download(), including attribute downloads, proposal downloads, and restSearch exports. An authenticated user who can create or upload an attachment with a crafted filename (for example through MISP attribute naming or proposal attachment naming) can store the malicious filename. When any other authenticated user views the affected page, the unsanitized filename is reflected into the HTTP response header, resulting in header manipulation and potential execution of arbitrary HTML or JavaScript in the context of the application origin. The security impact is equivalent to a stored cross-site scripting vulnerability, allowing session hijacking, data exfiltration, and unauthorized actions on behalf of the victim.

Affected Software

1 affected component
Misp Project Misp

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Sanitize filenames before interpolating them into the Content-Disposition header: strip C0 control characters (0x00-0x1F) and DEL (0x7F), and escape double-quote and backslash characters using addcslashes according to RFC 6266 quoted-string rules.

Event History

Oct 6, 2026
CVE Published
via MITRE·06:48 PM
Data Sourced
via MITRE·06:48 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·07:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which MISP functions can expose users to this issue?

The affected path includes callers of CakeResponse::download(), specifically attribute downloads, proposal downloads, and restSearch exports. Any other application feature that calls this method is also within the affected code path.

2

What level of access does an attacker need?

The CVSS vector indicates low privileges are required. The description identifies authenticated users who can create or upload an attachment as relevant attackers.

3

Does enabling download_attachments_on_load prevent exploitation?

No. The issue is reachable even when download_attachments_on_load is enabled, and a victim only needs to view a page that triggers the download.

4

What filename content is used for exploitation?

CR or LF control characters can cause PHP to drop the Content-Disposition header, allowing content such as an HTML attachment to render inline on the application origin. A double quote can terminate the filename's quoted value and allow additional Content-Disposition parameters to be injected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203