Vulnerability in swoosh
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-54893 has been found in swoosh.
Attackers can target a specific entry point like Swoosh.Adapters.MsGraph over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade swoosh to 1.26.3 or later.
If unsure, ask your IT team or search "swoosh CVE-2026-54893" on the vendor's site.
CVE-2026-54893 (swoosh) — CWE-116
Attack surface: Swoosh.Adapters.MsGraph / from / POST
Patched: 1.26.3 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-116) exists in swoosh. Attackers reach the vulnerable code path via Swoosh.Adapters.MsGraph.
Check the vendor advisory for the affected versions of swoosh. Attack surface: Swoosh.Adapters.MsGraph / from / POST.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 1.26.3.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'swoosh' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'swoosh' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
swooshを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade swoosh to 1.26.3ステージング環境で 1.26.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| erlangswoosh |
< 1.26.3→ 1.26.3 |
1.26.3 |
| Hexswoosh |
≥ 1.12.0, < 1.26.3→ 1.26.3 |
1.26.3 |
| swooshswoosh |
≥ 23bfcdab71aee4613858ba6d116bb3311b72aa58, < e38235453e81d1727bfc8d91e69ec4cb211ccf61→ e38235453e81d1727bfc8d91e69ec4cb211ccf61 |
e38235453e81d1727bfc8d91e69ec4cb211ccf61 |
Original description The description as published by the source.
Summary
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.
Workarounds
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.
Configurations
This vulnerability only affects applications that use Swoosh.Adapters.MsGraph and derive the email from address from untrusted or user-influenced input (for example a relay, a co…
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package hex.pm
- patch github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web github.com
- web github.com
- web repo.hex.pm