EEF-CVE-2026-54893

Source
https://cna.erlef.org/osv/EEF-CVE-2026-54893.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-54893.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-54893
Aliases
Published
2026-07-06T14:04:16.486Z
Modified
2026-07-07T04:32:26.465Z
Severity
  • 2.1 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
Email-derived URL path injection in the Swoosh Microsoft Graph adapter
Details

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.

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.

Configuration

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 contact form, or a "send as" feature). Applications that always send with a fixed, trusted "from" address are not affected.

Database specific
{
    "cwe_ids": [
        "CWE-116"
    ],
    "capec_ids": [
        "CAPEC-664"
    ],
    "cpe_ids": [
        "cpe:2.3:a:swoosh:swoosh:*:*:*:*:*:*:*:*"
    ]
}
References
Credits
    • Peter Ullrich - FINDER
    • Po Chen - REMEDIATION_DEVELOPER
    • Jonatan Männchen - ANALYST

Affected packages

Hex / swoosh

Package

Name
swoosh
Purl
pkg:hex/swoosh

Affected ranges

Type
SEMVER
Events
Introduced
1.12.0
Fixed
1.26.3

Affected versions

1.*
1.12.0
1.13.0
1.14.0
1.14.1
1.14.2
1.14.3
1.14.4
1.15.0
1.15.1
1.15.2
1.15.3
1.16.0
1.16.1
1.16.2
1.16.3
1.16.4
1.16.5
1.16.6
1.16.7
1.16.8
1.16.9
1.16.10
1.16.11
1.16.12
1.17.0
1.17.1
1.17.2
1.17.3
1.17.4
1.17.5
1.17.6
1.17.7
1.17.8
1.17.9
1.17.10
1.18.0
1.18.1
1.18.2
1.18.3
1.18.4
1.19.0
1.19.1
1.19.2
1.19.3
1.19.4
1.19.5
1.19.6
1.19.7
1.19.8
1.19.9
1.20.0
1.20.1
1.21.0
1.22.0
1.22.1
1.23.0
1.23.1
1.24.0
1.25.0
1.25.1
1.25.2
1.25.3
1.26.0
1.26.1
1.26.2

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-54893.json"

Git / github.com/swoosh/swoosh

Affected ranges

Type
GIT
Repo
https://github.com/swoosh/swoosh
Events

Affected versions

1.*
1.25.3
1.26.2
v1.*
v1.12.0
v1.13.0
v1.14.0
v1.14.1
v1.14.2
v1.14.3
v1.14.4
v1.15.0
v1.15.1
v1.15.2
v1.15.3
v1.16.0
v1.16.1
v1.16.10
v1.16.11
v1.16.12
v1.16.2
v1.16.3
v1.16.4
v1.16.5
v1.16.6
v1.16.7
v1.16.8
v1.16.9
v1.17.0
v1.17.1
v1.17.10
v1.17.2
v1.17.3
v1.17.4
v1.17.5
v1.17.6
v1.17.7
v1.17.8
v1.17.9
v1.18.0
v1.18.1
v1.18.2
v1.18.3
v1.18.4
v1.19.0
v1.19.1
v1.19.2
v1.19.3
v1.19.4
v1.19.5
v1.19.6
v1.19.7
v1.19.8
v1.19.9
v1.20.0
v1.20.1
v1.21.0
v1.22.0
v1.22.1
v1.23.0
v1.23.1
v1.24.0
v1.25.0
v1.25.1
v1.25.2
v1.26.0
v1.26.1

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-54893.json"