PT-2026-36018 · Unknown · Plack::Middleware::Xsendfile
Cpansec
·
Published
2026-04-29
·
Updated
2026-05-18
·
CVE-2026-7381
CVSS v3.1
9.1
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Plack::Middleware::XSendfile versions prior to 1.0053
Description
Plack::Middleware::XSendfile allows the variation setting (sendfile type) to be controlled by the client via the
X-Sendfile-Type header if it is not defined in the middleware constructor or the Plack environment. A malicious client can set the X-Sendfile-Type header to "X-Accel-Redirect" for services behind nginx reverse proxies and use the X-Accel-Mapping header to map the path to an arbitrary file on the server, enabling client-controlled path rewriting.Recommendations
Update to a version later than 1.0053, as Plack::Middleware::XSendfile is deprecated since version 1.0053 and will be removed from future releases of Plack.
Fix
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Plack::Middleware::Xsendfile