{"id":"CVE-2026-54893","published":"2026-07-06T14:04:16Z","modified":"2026-11-19T08:24:24Z","title":"Email-derived URL path injection in the Swoosh Microsoft Graph adapter","vendor":"swoosh","product":"swoosh","tier":"tail","description":{"text":"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.\n\nIn 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.\n\nThis issue affects swoosh: from 1.12.0 before 1.26.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00203,"percentile":0.10487,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/swoosh/swoosh/security/advisories/GHSA-754j-98wh-57rf","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-54893.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-54893","tags":["related"]},{"url":"https://github.com/swoosh/swoosh/commit/23bfcdab71aee4613858ba6d116bb3311b72aa58","tags":["related"]},{"url":"https://github.com/swoosh/swoosh/commit/e38235453e81d1727bfc8d91e69ec4cb211ccf61","tags":["patch"]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":2.1},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"swoosh","affectedVersions":[{"vendor":"swoosh","product":"swoosh","versions":[">= 1.12.0, < 1.26.3"]},{"vendor":"swoosh","product":"swoosh","versions":[">= 23bfcdab71aee4613858ba6d116bb3311b72aa58, < e38235453e81d1727bfc8d91e69ec4cb211ccf61"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-664","name":"Server Side Request Forgery"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-06T15:36:04.140981Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"swoosh","vulnerableRanges":[">=1.12.0, <1.26.3"],"patched":["1.26.3"],"from":["GHSA-754j-98wh-57rf"],"provenance":"source"}],"summary":{"text":"Swoosh's Microsoft Graph adapter (Swoosh.Adapters.MsGraph) interpolates the sender's email address unencoded and unvalidated into the Graph API request path (/users/{from}/sendMail), which is a path injection flaw. An attacker who can influence the from address in an application that derives it from untrusted input can use characters such as /, ?, or # to rewrite the request path and query string and redirect the request, sent with the application's bearer token, to other Graph endpoints within the token's scopes; applications that always use a fixed, trusted from address are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:18Z"},"euvd":{"id":"EUVD-2026-41876","exploited":false,"provenance":"source"}}