Skip to main content

swoosh has email-derived URL path injection in Microsoft Graph endpoint (CVE-2026-54893)

0
Low
Published: 10/16/2026 (10/16/2026, 19:22:31 UTC)
Source: GCVE Database
Product: swoosh

Description

Swoosh.Adapters.MsGraph constructs Microsoft Graph API request URLs by directly inserting the sender's email address into the URL path without encoding or validation. If the sender's address is derived from untrusted input, an attacker can inject URL-special characters to manipulate the request path and query string. This allows redirection of authenticated requests to other Graph endpoints within the token's scope, effectively enabling constrained server-side request forgery. Applications using fixed, trusted sender addresses are not affected. A patch is available to address this issue.

CVSS v4.0

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

Hexghsa
swoosh
Affected versions
>=1.12.0 <1.26.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/16/2026, 23:14:30 UTC

Technical Analysis

The vulnerability in Swoosh.Adapters.MsGraph (CVE-2026-54893) arises because the adapter builds the Microsoft Graph API URL by interpolating the sender's email address directly into the path segment /users/{from}/sendMail without percent-encoding or validating the 'from' address. This allows an attacker who can influence the 'from' address to inject URL-special characters such as '/', '?', and '#' into the local part of the email address. These characters can escape the intended path segment and rewrite the request's path and query string. Since the request is sent authenticated with the application's Microsoft Graph bearer token, the attacker can redirect the request to other Graph API endpoints within the token's scopes, effectively causing a constrained server-side request forgery. The vulnerability affects versions >=1.12.0 and <1.26.3 of the Swoosh library. A patch has been released to fix this issue.

Potential Impact

An attacker able to control the sender email address can manipulate the Microsoft Graph API request path and query string, redirecting authenticated requests to other Graph endpoints within the application's bearer token scopes. This can lead to unauthorized actions performed by the application on behalf of the attacker within the limits of the token's permissions. Applications that use fixed, trusted sender addresses are not impacted.

Mitigation Recommendations

A patch is available for this vulnerability. Users should upgrade Swoosh to version 1.26.3 or later where the issue is fixed. Until patched, applications should avoid deriving the sender's email address from untrusted or user-influenced input. Instead, use fixed, trusted sender addresses to prevent injection of URL-special characters into the Microsoft Graph API request path.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-754j-98wh-57rf
Osv Schema Version
1.4.0
Aliases
["CVE-2026-54893"]
Ecosystems
["Hex"]
Database Specific Severity
LOW
Cvss Version
4.0

Threat ID: 6ad2aeef2cdf04f6564556a5

Added to database: 10/16/2026, 23:10:39 UTC

Last enriched: 10/16/2026, 23:14:30 UTC

Last updated: 10/16/2026, 23:14:30 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses