# CVE-2026-40569: FreeScout's Mass Assignment in Mailbox Connection Settings Enables Silent Email Exfiltration


- **Severity:** Critical 9.0 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 21 Apr 2026
- **Updated:** 21 Apr 2026
- **Also known as:** GHSA-hmqm-33wp-858j

## What is CVE-2026-40569?

CVE-2026-40569 is a critical vulnerability in freescout-help-desk freescout, published on 21 Apr 2026. 

### Official description

FreeScout is a free self-hosted help desk and shared mailbox. Versions prior to 1.8.213 have a mass assignment vulnerability in the mailbox connection settings endpoints of FreeScout (`connectionIncomingSave()` at `app/Http/Controllers/MailboxesController.php:468` and `connectionOutgoingSave()` at line 398). Both methods pass `$request->all()` directly to `$mailbox->fill()` without any field allowlisting, allowing an authenticated admin to overwrite any of the 32 fields in the Mailbox model's `$fillable` array -- including security-critical fields that do not belong to the connection settings form, such as `auto_bcc`, `out_server`, `out_password`, `signature`, `auto_reply_enabled`, and `auto_reply_message`. Validation in `connectionIncomingSave()` is entirely commented out, and the validator in `connectionOutgoingSave()` only checks value formats for SMTP fields without stripping extra parameters. An authenticated admin user can exploit this by appending hidden parameters (e.g., `auto_bcc=attacker@evil.com`) to a legitimate connection settings save request. Because the `auto_bcc` field is not displayed on the connection settings form (it only appears on the general mailbox settings page), the injection is invisible to other administrators reviewing connection settings. Once set, every outgoing email from the affected mailbox is silently BCC'd to the attacker via the `SendReplyToCustomer` job. The same mechanism allows redirecting outgoing SMTP through an attacker-controlled server, injecting tracking pixels or phishing links into email signatures, and enabling attacker-crafted auto-replies -- all from a single HTTP request. This is particularly dangerous in multi-admin environments where one admin can silently surveil mailboxes managed by others, and when an admin session is compromised via a separate vulnerability (e.g., XSS), the attacker gains persistent email exfiltration that survives session expiry. Version 1.8.213 fixes the issue.

Weakness: CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes), CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2026-40569?


## How do I fix CVE-2026-40569?

No fix has been published for CVE-2026-40569 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-40569 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40569 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-40569 and fix it if it is affected.

What it is: CVE-2026-40569 is a critical vulnerability in freescout-help-desk freescout, published on 21 Apr 2026. 
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40569 exists.

Affected product: freescout-help-desk freescout. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-40569/ (Markdown: https://insights.sbomify.com/CVE-2026-40569/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-40569
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40569
- OSV: https://osv.dev/vulnerability/CVE-2026-40569

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-40569/
Summaries are generated and may contain mistakes; the official description above is the record.
