CVE-2026-42448: Magic Wormhole Receive, With --output Pointing At Vulnerability
LOWCVE-2026-42448 is a LOW (CVSS 3.5) receive, with --output pointing at vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Magic Wormhole libraries in the PyPI ecosystem. The issue involves receive, with --output pointing at an existing directory can be path-traversed. Remediation is available by upgrading affected packages to version 0.24.0.
CVE-2026-42448 at a Glance
Security Impact
CVSS: 3.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-42448
To remediate this vulnerability, upgrade all affected Magic Wormhole dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install magic-wormhole>=0.24.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show magic-wormhole
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-42448, inspect your installed packages using pip:
pip show magic-wormhole
Analyze the terminal output to locate any version of Magic Wormhole in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.24.0), your application is affected.
Note: The pip show magic-wormhole command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Magic Wormhole, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42448 Affected Magic Wormhole Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
magic-wormhole
|
PyPI |
< 0.24.0
≥ 0.23.0
All 1 versions
0.23.0
|
0.24.0
|
References
Frequently Asked Questions
What is CVE-2026-42448?
Which Magic Wormhole versions are affected?
What version fixes CVE-2026-42448?
Is magic-wormhole affected?
What is the CVSS score of CVE-2026-42448?
What CWE is associated with CVE-2026-42448?
How can I check PyPI dependencies for CVE-2026-42448?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cf92-gfcw-6v53",
"modified" : "2026-06-08T23:28:03Z",
"published" : "2026-05-06T20:40:17Z",
"aliases" : [ "CVE-2026-42448" ],
"summary" : "Magic Wormhole: receive, with --output pointing at an existing directory can be path-traversed",
"details" : "### Impact\nA receiver who specifies \"--output <dir>\" where that output directory currently exists (as a directory).\n\n### Patches\n0.24.0 will contain the patch\n\n### Workarounds\nEnsure local target directories specified by \"--output\" do not already exist\n\n### Resources\nPrivate email and Signal communications from a user.\nMagic Wormhole thanks @marduc812",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "magic-wormhole"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.23.0"
}, {
"fixed" : "0.24.0"
} ]
} ],
"versions" : [ "0.23.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/magic-wormhole/magic-wormhole/security/advisories/GHSA-cf92-gfcw-6v53"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42448"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/magic-wormhole/magic-wormhole"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-06T20:40:17Z",
"nvd_published_at" : "2026-05-26T18:16:48Z"
}
}