CVE-2026-54893
Email-derived URL path injection in the Swoosh Microsoft Graph adapter
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.
INFO
Published Date :
July 6, 2026, 3:16 p.m.
Last Modified :
July 6, 2026, 3:16 p.m.
Remotely Exploit :
No
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products
The following products are affected by CVE-2026-54893
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | LOW | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | LOW | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update Swoosh.Adapters.MsGraph to version 1.26.3 or later.
- Ensure sender email addresses are validated before use.
- Consider using a fixed, trusted sender address.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-54893.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-54893 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-54893
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-54893 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-54893 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Jul. 06, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:swoosh:swoosh:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/swoosh/swoosh', 'vendor': 'swoosh', 'modules': ["'Elixir.Swoosh.Adapters.MsGraph'"], 'product': 'swoosh', 'versions': [{'status': 'affected', 'version': '1.12.0', 'lessThan': '1.26.3', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/swoosh', 'packageName': 'swoosh', 'programFiles': ['lib/swoosh/adapters/ms_graph.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Swoosh.Adapters.MsGraph':deliver/2"}, {'name': "'Elixir.Swoosh.Adapters.MsGraph':api_endpoint_url/2"}]}, {'cpes': ['cpe:2.3:a:swoosh:swoosh:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/swoosh/swoosh', 'vendor': 'swoosh', 'modules': ["'Elixir.Swoosh.Adapters.MsGraph'"], 'product': 'swoosh', 'versions': [{'status': 'affected', 'version': '23bfcdab71aee4613858ba6d116bb3311b72aa58', 'lessThan': 'e38235453e81d1727bfc8d91e69ec4cb211ccf61', 'versionType': 'git'}], 'packageURL': 'pkg:github/swoosh/swoosh', 'packageName': 'swoosh/swoosh', 'programFiles': ['lib/swoosh/adapters/ms_graph.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Swoosh.Adapters.MsGraph':deliver/2"}, {'name': "'Elixir.Swoosh.Adapters.MsGraph':api_endpoint_url/2"}]}] Added 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. Added CVSS V4.0 AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-116 Added Reference https://cna.erlef.org/cves/CVE-2026-54893.html Added Reference https://github.com/swoosh/swoosh/commit/e38235453e81d1727bfc8d91e69ec4cb211ccf61 Added Reference https://github.com/swoosh/swoosh/security/advisories/GHSA-754j-98wh-57rf Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-54893