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.
Published: 2026-07-06
Score: 2.1 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Swoosh Microsoft Graph adapter builds the API request URL by inserting the sender's email address directly into the path (/users/{from}/sendMail) without percent‑encoding or validation. Because email addresses derived from untrusted input can contain special URL characters such as '/' ,? or #, an attacker can manipulate the URL path and query string. This allows redirecting the authenticated POST request to any Graph endpoint within the token's scopes, potentially exposing data or performing privileged actions on behalf of the application. The flaw is an unsafe string handling issue (CWE‑116).

Affected Systems

Swoosh library versions 1.12.0 through 1.26.2 when used with the Microsoft Graph adapter in any application that accepts user‑controlled from addresses, such as email relays, contact forms, or send‑as features. Applications that hard‑code a trusted sender address are not affected.

Risk and Exploitability

The CVSS score of 2.1 indicates low overall severity, and the EPSS score of <1% shows a very low likelihood of exploitation. However, the attack vector requires only that an attacker supply a crafted email address; the application must forward it to the Microsoft Graph adapter. Once triggered, the attacker can issue authenticated Graph API requests to any endpoint within the token's scopes, yet no remote code execution is possible. The vulnerability is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on July 26, 2026 at 20:32 UTC.

Remediation

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.


OpenCVE Recommended Actions

  • Upgrade Swoosh to version 1.26.3 or later to address the Microsoft Graph adapter flaw.
  • If an immediate upgrade is not possible, configure the adapter to use a static :url, which bypasses interpolation of the sender address into the request path.
  • Validate or reject sender addresses containing URI‑special characters such as '/' ,? , '#' or '..' before passing them to the adapter, ensuring only RFC‑5321‑compliant addresses are used.

Generated by OpenCVE AI on July 26, 2026 at 20:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 14:30:00 +0000

Type Values Removed Values 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.
Title Email-derived URL path injection in the Swoosh Microsoft Graph adapter
First Time appeared Swoosh
Swoosh swoosh
Weaknesses CWE-116
CPEs cpe:2.3:a:swoosh:swoosh:*:*:*:*:*:*:*:*
Vendors & Products Swoosh
Swoosh swoosh
References
Metrics cvssV4_0

{'score': 2.1, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-07-07T04:32:26.465Z

Reserved: 2026-06-16T10:47:13.915Z

Link: CVE-2026-54893

cve-icon Vulnrichment

Updated: 2026-07-06T15:36:10.896Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T20:45:03Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output