# CVE-2026-54893: Email-derived URL path injection in the Swoosh Microsoft Graph adapter

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.1
- **CVSS:** 2.1 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-116
- **Published:** 2026-07-06T14:04:16.486Z
- **Modified:** 2026-11-19T08:24:24.567Z

## Who should check

- Anyone running swoosh \>= 1.12.0, \< 1.26.3
- Anyone running swoosh \>= 23bfcdab71aee4613858ba6d116bb3311b72aa58, \< e38235453e81d1727bfc8d91e69ec4cb211ccf61

## Description

URL path injection in the Microsoft Graph adapter of Swoosh. Swoosh.Adapters.MsGraph builds its Microsoft Graph API request URL by interpolating the sender's email address into the URL path (/users/{from}/sendMail) without percent-encoding or validation.

In applications that derive the from address from untrusted or user-influenced input (for example a relay, a contact form, or a "send as" feature), an attacker can place URL-special characters such as /, ?, or \# in the local part of the address to escape the intended path segment and rewrite the path and query string of the request. Because the same authenticated POST is sent with the application's Microsoft Graph bearer token, the attacker can redirect it to other Graph endpoints within the token's scopes and control the request's query string. Applications that always use a fixed, trusted from address are not affected.

This issue affects swoosh: from 1.12.0 before 1.26.3.

## Affected and fixed versions

- swoosh: \>= 1.12.0, \< 1.26.3 (cvelist)
- swoosh: \>= 23bfcdab71aee4613858ba6d116bb3311b72aa58, \< e38235453e81d1727bfc8d91e69ec4cb211ccf61 (cvelist)

## Mitigation

- Upgrade swoosh to 1.26.3 or later.
- Vendor workaround: Validate or reject sender addresses that contain characters outside the allowed RFC 5321 set (in particular /, ?, \#, and ..) before passing the email to the adapter. Alternatively, set a static :url in the adapter configuration, which bypasses interpolation of the from address into the request path.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54893. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54893.md
Affected: swoosh >= 1.12.0, < 1.26.3; swoosh >= 23bfcdab71aee4613858ba6d116bb3311b72aa58, < e38235453e81d1727bfc8d91e69ec4cb211ccf61
Fixed in: swoosh 1.26.3

Steps:
1. Search this machine and project for swoosh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54893 being exploited?

There is no confirmed exploitation: CVE-2026-54893 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54893?

Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

swoosh \>= 1.12.0, \< 1.26.3; swoosh \>= 23bfcdab71aee4613858ba6d116bb3311b72aa58, \< e38235453e81d1727bfc8d91e69ec4cb211ccf61.

### Is there a fix for CVE-2026-54893?

Yes. Fixed in swoosh 1.26.3. Upgrade swoosh to 1.26.3 or later. Vendor workaround: Validate or reject sender addresses that contain characters outside the allowed RFC 5321 set (in particular /, ?, \#, and ..) before passing the email to the adapter. Alternatively, set a static :url in the adapter configuration, which bypasses interpolation of the from address into the request path.

### How do I check if I'm affected by CVE-2026-54893?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/swoosh/swoosh/security/advisories/GHSA-754j-98wh-57rf>
- patch: <https://github.com/swoosh/swoosh/commit/23bfcdab71aee4613858ba6d116bb3311b72aa58>
- patch: <https://github.com/swoosh/swoosh/commit/e38235453e81d1727bfc8d91e69ec4cb211ccf61>
- other: <https://cna.erlef.org/cves/CVE-2026-54893.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-54893>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54893>

HTML: <https://flawdb.com/CVE-2026-54893> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54893>
